CLI Guide

Layer 3 Routing Commands 1328
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 neighbor’s 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.
ASNs in the range 64496-64511 and 65536-65551 are for documentation
purposes only and should never be used in a network.
Command History
Introduced in version 6.2.0.1 firmware.