Configuring the Overlay for VXLAN Routing

BGP EVPN can be configured as a Layer 2 extension protocol within the overlay of a VXLAN network.

To set up BGP EVPN as a Layer 2 extension protocol, specific configurations are required, including the setup of local VXLAN site information and the mapping of VLANs to VNIs. The following task sets the VXLAN overlay gateway type as Layer2 extension EVPN. It configures the IP interface for the overlay gateway, and maps a range of VLANs to be extended over the overlay gateway to a VXLAN Network Identifier (VNI). This task sets the configurations for one VTEP (VTEP 1.1.1.1).

  1. Enter global configuration mode.
    device# configure terminal
  2. Configure an overlay gateway and enter gateway configuration mode.
    device(config)# overlay-gateway site-local
  3. Set the VXLAN gateway type as Layer2 extension EVPN.
    device(config-overlay-gw-site-local)# type layer2-extension evpn
  4. Configure the IP interface for the overlay gateway
    device(config-overlay-gw-site-local)# ip interface loopback 1
  5. Map a range of VLANs (VLAN 30 through VLAN 40) to a VNI for the VXLAN overlay gateway.
    device(config-overlay-gw-site-local)# map vlan-range 30 to 40 vni-start 10030
  6. Map a VLAN to a VNI for the VXLAN overlay gateway.
    device(config-overlay-gw-site-local)# map vlan 41 to vni 10041

The following example sets the VXLAN overlay gateway type as Layer2 extension EVPN. It configures the IP interface for the overlay gateway, and maps a range of VLANs to be extended over the overlay gateway to a VNI. The example sets the configurations for two VTEPs (VTEP 1.1.1.1 and VTEP 2.2.2.2).

VTEP-1(1.1.1.1) — ve2 — RR :

device(config)# overlay-gateway site-local
device(config-overlay-gw-site-local)# type layer2-extension evpn
device(config-overlay-gw-site-local)# ip interface loopback 1
device(config-overlay-gw-site-local)# map vlan-range 30 to 40 vni-start 10030
device(config-overlay-gw-site-local)# map vlan 41 to vni 10041

VTEP-2(2.2.2.2)--- ve3 — RR :

device(config)# overlay-gateway site-local
device(config-overlay-gw-site-local)# type layer2-extension evpn
device(config-overlay-gw-site-local)# ip interface loopback 1
device(config-overlay-gw-site-local)# map vlan-range 30 to 40 vni-start 10030
device(config-overlay-gw-site-local)# map vlan 41 to vni 10041