07-19-2006 07:15 AM - edited 03-03-2019 01:23 PM
I need to remove an AS # in the path before passing the route on to our provider. I know the "set as-path prepend" command can add AS #s to the path, but is there a way to remove the current AS# before sending it on to our provider.
Example.
Router is learning routes from router in AS 65100. Need to pass these route to provider, but they will only accept routes with AS 65417 in the path.
These commands prepended 64517, but path still contained 65100 in it.
router bgp 64517
neighbor 1.2.3.4 route-map prepend-routes out
route-map prepend-routes permit 10
set as-path prepend 64517 64517 64517
Solved! Go to Solution.
07-19-2006 08:43 AM
You can use: neighbor a.b.c.d remove-private-as.
I dont think the ASN for router peering with ISP will be removed.
Thanks.
07-19-2006 08:43 AM
You can use: neighbor a.b.c.d remove-private-as.
I dont think the ASN for router peering with ISP will be removed.
Thanks.
07-19-2006 08:48 AM
Use the following command
router bgp 64517
neighbor 1.2.3.4 remove-private-AS
regards
Narayan
07-26-2006 05:57 AM
I tested "remove-private-as" on our Internet router and it did the trick. It removed our internal ASN of 65100, but still kept 64517.
Thanks for the help.
07-26-2006 07:56 AM
Richard,
The fact that 64517 is still there is normal behavior as IOS applies the remove-private-AS before it inserts the local AS and prepends additional ASes.
Hope this helps,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide