Overview
Explains the functionality of removing private AS numbers from iBGP advertisements only when it is safe to do so, helping prevent routing loops and supporting scenarios where eBGP boundary removal is not sufficient.
The removing private AS numbers when advertising to iBGP neighbors is a routing feature that:
-
provides a safe method to remove private AS numbers when advertising to iBGP neighbors without causing routing loops,
-
enables safe AS_PATH modification for iBGP neighbors by removing private AS numbers only if all AS numbers in the path are private, and
-
addresses specific network scenarios where traditional inbound removal at the eBGP boundary is insufficient.
The remove-private-as internal command allows you to configure this behavior under the neighbor address-family.
This feature ensures that private AS numbers are stripped from iBGP advertisements only when it is safe to do so, preventing routing loops that can occur if AS_PATH modifications are done improperly.
Unlike general AS_PATH modifications, which are disallowed for iBGP neighbors, this targeted removal provides a controlled exception to meet operational needs.
Use this feature when you need to advertise routes to internal BGP neighbors without private AS numbers in the AS_PATH, especially in complex network topologies where eBGP boundary removal is not enough.