Configures a device to remove private autonomous system numbers (ASNs) from UPDATE messages that the device sends to a neighbor.
BGP configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
The device will remove ASNs 64512 through 65535 (the well-known BGP4 private ASNs) from the AS-path attribute in UPDATE messages that the device sends to a neighbor.
The no form of the command restores the default so that private ASNs are not removed from UPDATE messages sent to a neighbor by a device.
The following example removes private ASNs globally.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor 10.11.12.13 remove-private-as
The following example removes private ASNs for VRF instance "red".
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast vrf red device(config-bgp-ipv6u-vrf)# neighbor 10.11.12.13 remove-private-as