Causes the device to prepend the local autonomous system number (ASN) automatically to routes received from an eBGP peer.
This feature is disabled.
BGP configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
Use the no form of this command to remove the local ASN.
This example ensures that a device prepends the local ASN.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor 10.11.12.13 local-as 100
This example stops the device from prepending the selected ASN.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor 10.11.12.13 local-as 100 no-prepend