To enable the capability to send and receive EVPN routes, use the following command and select the l2vpn-evpn option:
enable bgp neighbor [all |remoteaddr] capability [ipv4-unicast | ipv4-multicast | ipv6-unicast | ipv6-multicast | vpnv4 | route-refresh | ipv4-vxlan | l2vpn-evpn]
To disable the capability to send and receive EVPN routes, use the following command and select the l2vpn-evpn:
disable bgp neighbor [all | remoteaddr] capability [ipv4-unicast | ipv4-multicast | ipv6-unicast | ipv6-multicast | vpnv4 | route-refresh | ipv4-vxlan | l2vpn-evpn]
To create an EVPN instance, use the following command:
create bgp evpn instance evpn_instance_name
The EVPN instance becomes active if the configured VNI matches the configured VNI of a virtual-network.
To delete an EVPN instance, use the following command:
delete bgp evpn instance evpn_instance_name
To add or delete a virtual extensible local area network (VXLAN) virtual network identifier (VNI) to an EVPN instance, use the following command:
configure bgp evpn instance evpn_instance_name vxlan vni [vni_value | none]
To configure route targets for an EVPN instance, use the following command:
configure bgp evpn instance evpn_instance_name route-target {import | export | both} [add | delete] route_target
To configure route distinguishers for an EVPN instance, use the following command:
configure bgp evpn instance evpn_instance_name rd [rd_value | auto]
To enable overriding the specification behavior with respect to the next-hop of routes advertised to EBGP peers, use the following command:
enable bgp {neighbor [remoteaddr | all]} {{address-family} l2vpn-evpn} next-hop-unchanged
To disable overriding the specification behavior with respect to the next-hop of routes advertised to EBGP peers, use the following command:
disable bgp {neighbor [remoteaddr | all]} {{address-family} l2vpn-evpn} next-hop-unchanged