Enables the outbound AS_PATH check function so that a BGP sender speaker does not send routes with an AS path that contains the ASN of the receiving speaker.
Disabled.
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
When the neighbor enable-peer-as-check command is used for a BGP address family, a neighbor reset is required.
The no form of the command disables the AS-path check function.
The following example enables the outbound AS_PATH check function for the L2VPN EVPN unicast address family.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family l2vpn evpn device(config-bgp-evpn)# neighbor 10.1.1.1 enable-peer-as-check
The following example enables the outbound AS_PATH check function for the IPv6 unicast address family.
SLX# configure terminal SLX(config)# router bgp SLX(config-bgp-router)# address-family ipv6 unicast SLX(config-bgp-ipv6u)# neighbor 10.1.1.1 enable-peer-as-check