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
To configure a Layer 3 virtual network identifier (VNI) and bind it to a VPN VRF, use the following command:
configure bgp evpn l3vni [vni_value | none] vr vr_name
To export direct, static, and BGP routes from a VRF into BGP, running on the specified VR, as EVPN routes to be advertised by BGP as Type 5 routes, use the following command:
enable bgp export [static | direct] {address-family address_family} l2vpn-evpn {vr vr_name}
To stop exporting direct, static, and BGP routes from a VRF into BGP, running on the specified VR, as EVPN routes to be advertised by BGP as Type 5 routes, use the following command:
disable bgp export [static | direct] {address-family address_family} l2vpn-evpn {vr vr_name}