Ensures that a device requires the first ASN listed in the AS_SEQUENCE field of an AS path-update message from EBGP neighbors to be the ASN of the neighbor that sent the update.
Disabled by default.
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 disable this requirement globally for the device.
This example enables the enforce-first-as feature for a specified neighbor.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor 10.11.12.13 enforce-first-as enable
This example enables the enforce-first-as feature for a BGP4+ specified neighbor for VRF instance "red".
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u-vrf)# neighbor 2001:2018:8192::125 enforce-first-as enable