Disables the AS_PATH check function for routes learned from a specified neighbor so that BGP does not reject routes that contain the recipient BGP speaker's AS number.
The AS_PATH check function is enabled and any route whose path contains the speaker's AS number is rejected as a loop.
BGP address-family IPv4 unicast configuration mode
BGP address-family IPv6 unicast configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
BGP address-family L2VPN EVPN configuration mode
If the AS_PATH check function is disabled after a BGP session has been established, the neighbor session must be cleared for this change to take effect.
The no form of the command re-enables the AS_PATH check function.
The following example specifies that the AS path of a received route may contain the recipient BGP4+ speaker's AS number three times and still be accepted.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 2001:2018:8192::125 allowas-in 3 %Warning: Please clear the neighbor session for the parameter change to take effect!
The following example specifies for VRF instance "red" that the BGP4+ AS path of a received route may contain the recipient BGP speaker's AS number three times and still be accepted.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast vrf red device(config-bgp-ipv6u-vrf)# neighbor 2001:2018:8192::124 allowas-in 3 %Warning: Please clear the neighbor session for the parameter change to take effect!
The following example specifies that the AS path of a received route may contain the recipient BGP speaker's AS number three times and still be accepted in L2VPN EVPN configuration mode.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family l2vpn evpn device(config-bgp-evpn)# neighbor 10.1.1.1 allowas-in 3 %Warning: Please clear the neighbor session for the parameter change to take effect!