Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

static route redistributed in iBGP with AS prepend

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
Purple

Re: static route redistributed in iBGP with AS prepend

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.

1450
Views
0
Helpful
1
Replies
CreatePlease to create content