Configuring the Overlay for VXLAN Routing
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).
- Enter global configuration mode.
- Configure an overlay gateway and enter gateway configuration mode.
- Set the VXLAN gateway type as Layer2 extension EVPN.
- Configure the IP interface for the overlay gateway
- Map a range of VLANs (VLAN 30 through VLAN 40) to a VNI for the VXLAN overlay gateway.
- Map a VLAN to a VNI for the VXLAN overlay gateway.
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).
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
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