[nsp] as-path prepend question

Eric Kagan eklists at crtservices.net
Tue Sep 2 07:44:22 EDT 2003


> I want to prepend a path based on the source ip with two additional hops 
> and the rest with one, here the config-part as I understand
> 
> router bgp MYAS
>   network 10.10.0.0
>   neighbor 172.16.0.1 remote-as 2
>   neighbor 172.16.0.1 route-map ASprepend-OUT out
> !
> access-list 1 10.10.0.0 0.0.0.255
> !
> route-map ASprepend-OUT permit 10
>   match ip address 1
>   set as-path prepend <MYAS> <MYAS>
> !
> route-map ASprepend-OUT permit 20
>   set as-path prepend <MYAS>
> 
> would this work, does anyone else is doing something like that any other 
> suggestions ?

This should work fine, we have a similar configuration.

Rick


More information about the cisco-nsp mailing list