Administrator Guide

Layer 3 Routing Commands 1308
neighbor remove-private-as
Use the neighbor remove-private-as command to remove private AS numbers
when advertising IPv4 routes to an external peer. To stop removing private AS
numbers, use the no form of this command.
Syntax
neighbor {
ip-address
|
ipv6-address
[interface vlan
vlan-id
]}
remove-
private-as [ all replace-as ]
no neighbor {
ip-address
|
ipv6-address
[interface vlan
vlan-id
]}
remove-
private-as
ip-address
– The neighbor’s IPv4 address.
ipv6-address
– The neighbors IPv6 address. If the neighbor’s IPv6 address
is a link local address, the local interface must also be specified.
interface vlan
vlan-id
– The local interface/VLAN ID over which the IPv6
neighbor can be reached. Range 1-4093.
all replace-as
– (Optional) To retain the original AS path length, replace
each private AS number with the local AS number.
Default Configuration
Private AS numbers are not removed by default.
Command Mode
BGP Router Configuration mode
User Guidelines
This command can only be applied to external peers. Private AS numbers are
removed or replaced whether or not the original AS path includes any non-
private AS numbers. The AS path advertised to the external peer always
includes at least one instance of the local AS number; therefore, removing
private AS numbers never results in advertisement of an empty AS_PATH
attribute. AS numbers from 64512 to 65535 inclusive are considered private.
Although 65535 is a reserved ASN and not technically part of the private
range, it is treated as a private ASN when removing or replacing private ASNs.
2CSNXXX_SWUM204.book Page 1308 Monday, January 25, 2016 1:25 PM