neighbor enable-peer-as-check

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.

Syntax

neighbor { ip-address | ipv6-address | peer-group-name } enable-peer-as-check
no neighbor { ip-address | ipv6-address | peer-group-name } enable-peer-as-check

Command Default

Disabled.

Parameters

ip-address
Specifies the IPv4 address of the neighbor.
ipv6-address
Specifies the IPv6 address of the neighbor.
peer-group-name
Specifies a peer group.

Modes

BGP address-family L2VPN EVPN configuration mode

Usage Guidelines

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.

Examples

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