cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2377
Views
0
Helpful
1
Replies

static route redistributed in iBGP with AS prepend

etxnreg
Level 1
Level 1

Hi,

I would like to add a static route in the BGP table, but in the same time I will add a AS path to this static route.

My solution was to do following commands:

router bgp xxx

network 192.168.103.0 mask 255.255.255.252 route-map hsrptest

ip route 192.168.103.0 255.255.255.252 192.168.201.9

route-map hsrptest permit 10

set as-path prepend 71 71 71

set community 71:4

For some reason the AS prepend part is not added in the BGP table, but the community part change work fine.

Could somebody tell me why is not possible to add AS path prepend attribute?

/Niklas

1 Reply 1

pkhatri
Level 11
Level 11

Hi Niklas,

In the Cisco implementation, a route that is locally injected into BGP will always have an empty AS-PATH. I don't know of any way that you can change that. Also, AS-Path prepending cannot be done on IBGP updates, only on EBGP updates.

HTH,

Paresh.

Review Cisco Networking products for a $25 gift card