[nsp] as-path prepend question
Marcelo Maraboli
marcelo.maraboli at dcsc.utfsm.cl
Wed Sep 10 12:37:56 EDT 2003
Eric
This works for me....prefix-lists !!
---------------
! BGP needs to "know" the route to advertise it later..
ip route 200.1.16.0 255.255.255.0 200.1.21.161
ip route 200.1.16.0 255.255.240.0 200.1.21.161
router bgp xxyyzz
network 200.1.16.0 mask 255.255.240.0
network 200.1.16.0 mask 255.255.255.0
neighbor attinter peer-group
neighbor attinter remote-as gxgx
neighbor attinter description ATT
neighbor attinter soft-reconfiguration inbound
neighbor attinter route-map ATT-INTERNET-OUT out
neighbor 12.x.j.p peer-group attinter
!
route-map ATT-INTERNET-OUT permit 10
match ip address prefix-list NET-16
set as-path prepend xxyyzz xxyyzz
!
route-map ATT-INTERNET-OUT permit 20
match ip address prefix-list ANUNCIOS
ip prefix-list NET-16 seq 10 permit 200.1.16.0/24
ip prefix-list ANUNCIOS seq 10 permit 200.1.16.0/20 le 24
----------------
Eric Kagan wrote:
>>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
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
>
--
Marcelo Maraboli Rosselott
Jefe Area de Redes (Network & UNIX Systems Administrator)
Ingeniero Civil Electronico (Electronic Engineer)
Direccion Central de Servicios Computacionales (DCSC)
Universidad Tecnica Federico Santa Maria, Chile.
phone: +56 32 654237
mailto:marcelo.maraboli at dcsc.utfsm.cl http://elqui.dcsc.utfsm.cl/
More information about the cisco-nsp
mailing list