BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

PDF

BGP private AS number management

Want to summarize with AI?

Log in

Overview

Explains managing private autonomous system numbers in BGP to ensure proper route handling and policy enforcement.

BGP private AS number management is a feature that

  • allows routers belonging to a private Autonomous System (AS) to access the global Internet

  • removes private Autonomous System Numbers (ASNs) from the AS path in outgoing update messages, and

  • optionally replaces those numbers with the local router's ASN to maintain AS path length.

Private AS numbers are ASNs that

  • are used by Internet Service Providers (ISPs) and customer networks to conserve globally unique ASNs

  • cannot access the global Internet because they are not unique, and

  • range from 64,512 to 65,535.

Private AS number removal and replacement in BGP

Public ASNs are assigned by InterNIC, range from 1 to 64,511, and are globally unique. Private ASNs range from 64,512 to 65,535, are not unique, and cannot appear in the global BGP routing table.

Because BGP best path calculations require unique ASNs, private ASNs must be removed from the AS path before propagating routes to external peers. With this featurem you can configure routers to strip private ASNs from outgoing updates in external BGP (eBGP) sessions. Optionally, the router can replace them with its own ASN to preserve the AS path length.


Verify private AS number removal or replacement

To confirm that private AS numbers are successfully removed or replaced from the AS path.

After configuring the removal or replacement of private AS numbers, you should verify the changes to ensure proper BGP operation.

Before you begin

Ensure the remove-private-as or replace-as command has been configured

Procedure

Run these commands to verify that the private AS numbers are removed or replaced.

  • Run show bgp neighbors command.
  • Run show bgp update-group command.

The command outputs display information that indicates whether private AS numbers were removed or replaced as intended.