neighbor remove-private-as

This command specifies whether or not to remove private autonomous system (AS) numbers from outbound updates to an external peer.

Syntax

neighbor {ip-address | groupID} remove-private-as
no neighbor {ip-address | groupID} remove-private-as

Parameters

ip-address Specifies a BGP peer as a valid IPv4 address in dotted-quad format or as a valid IPv6 address in colon-separated format.
groupID Specifies a BGP peer group name as a string of characters. If an invalid IP address is specified (for example, 256.1.1.1), it will be read as a group name.

Defaults

None.

Mode

BGP Router Configuration.

Usage

The neighbor remove-private-as command removes private AS numbers when sending updates to an external peer. When enabled, private AS numbers are removed on outbound updates from any received routes with an AS-path containing private AS numbers.

Example

The following example causes BGP to strip private AS numbers from updates to this peer:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 1.1.1.1
System(su-config-bgp)->neighbor 1.2.3.4 remote-as 5
System(su-config-bgp)->neighbor 1.2.3.4 remove-private-as

The following example causes BGP to no longer remove private AS numbers:

System(su-config)->router bgp 65151
System(su-config-bgp)->no neighbor 1.2.3.4 remove-private-as