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 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