01-13-2022 04:51 AM - edited 01-13-2022 04:52 AM
Hello everyone,
I have a question regarding the suppression of the BGP private AS numbers in the prefixes announced by the partners or by the subsidiaries.
I have a couple of routers in a colocation facility and there they interconnect with external networks, we attribute a private AS number to each subsidiary or partner and the problem is the following:
The prefixes advertised by the external router traverse their own infrastructure (which includes service providers) therefore the AS_PATH of the prefixes has a mix of public and private AS numbers.... those private AS sometimes overlap with ours which could generate problems... how can I suppress the private AS of the external partners?
I have tried the following:
Any other idea?
Thanks in advance.
01-13-2022 05:22 AM
Hello @TelesEC ,
option 3 is the way to go but you need to use BGP confederations so that you will have two distinct AS path attribute the external one and the Confed AS path segment , then in peering with true eBGP your public AS number will be used and the Confed AS path segment is not propagated.
this way can work.
Hope to help
Giuseppe
01-23-2022 06:35 AM
Hi,
Can you try with command "remove-private-as all replace-as"?
You might need to upgrade to the latest IOS version.
Regards,
Ventsi
02-02-2022 03:13 AM
Hola!
Thank you for your response.
In Cisco IOS-XE the "remove-private-as all" command works only if the ASN of the router where you configure the command is a public ASN... In my case, the routers have private ASNs.
The documentation does not specify if this limitation has been removed... in Cisco IOS-XR I do not find this problem.
I do not have virtual routers in higher versions that allow me to test this command.
Regards,
Andrés
02-02-2022 03:16 AM
Hi!
Thanks for your answer and for the idea, we do not use BGP confederations but it would be interesting to analyze the idea.
Regards,
Andrés
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