API Guide

e. Enable the peer session with the BGP neighbor in ROUTER-BGP-NEIGHBOR mode.
no shutdown
f. Configure the L2 VPN EVPN address family for VXLAN host-based routing to the BGP peer in ROUTER-BGP-NEIGHBOR
mode.
address-family l2vpn evpn
g. Enable the exchange of L2VPN EVPN addresses with the BGP peer in ROUTER-BGP-NEIGHBOR mode.
activate
h. Return to ROUTER-BGP mode.
exit
i. Enter IPv4 address-family configuration mode from ROUTER-BGP mode.
address-family ipv4 unicast
j. Disable the exchange of IPv4 addresses with BGP peers in ROUTER-BGP mode.
no activate
k. Return to ROUTER-BGP-NEIGHBOR mode.
exit
l. (Optional) If all the leaf switches are configured in the same ASN:
On each leaf switch, enter L2VPN EVPN address-family configuration mode from ROUTER-BGP-NEIGHBOR mode.
Activate the exchange of L2VPN EVPN addresses with BGP peers. Configure the switch to accept a route with the
local AS number in updates received from a peer in ROUTER-BGP-NEIGHBOR-AF mode.
OS10(config-router-bgp-neighbor)# address-family l2vpn evpn
OS10(config-router-neighbor-af)# activate
OS10(config-router-neighbor-af)# allowas-in 1
OS10(config-router-neighbor-af)# exit
OS10(config-router-bgp-neighbor)# exit
On each spine switch, disable sender-side loop detection to leaf switch neighbors in ROUTER-BGP-NEIGHBOR-AF
mode.
OS10(conf-router-neighbor)# address-family ipv4 unicast
OS10(conf-router-neighbor-af)# no sender-side-loop-detection
OS10(conf-router-neighbor-af)# exit
m. (Optional) In a VLT deployment, on each leaf switch, configure the number of multi-hop peer routes in ROUTER-BGP-
NEIGHBOR mode to ensure that the BGP EVPN peer session establishes over the VLT VTEP peer if all local links to spine
switches are down.
OS10(conf-router-neighbor)# ebgp-multihop 1
2. Configure EVPN.
An EVPN instance (EVI) spans across the VTEPs that participate in the EVPN. In OS10, configure an EVI in auto-EVI or
manual configuration mode.
Auto-EVI mode
a. Enable the EVPN control plane in CONFIGURATION mode.
evpn
b. Enable auto-EVI creation for overlay virtual networks in EVPN mode. Auto-EVI creation is supported only if BGP
EVPN is used with 2-byte AS numbers and if at least one BGP instance is enabled with the EVPN address family. No
further manual configuration is allowed in auto-EVI mode.
auto-evi
VXLAN
927