Configuring the Underlay Network
The BGP EVPN underlay network must be
configured to build Layer 3 connectivity among VTEPs and intermediate routers. Loopback
interface addresses, used as VTEP and BGP peer endpoints, must be routable in the
underlay.
While an Interior Gateway Protocol (IGP) such as OSPF or RIP can be enabled for
underlay
routing, it is recommended to employ OSPF for optimal underlay routing.
Note: Enabling OSPF for
the underlay is recommended.
- Enter global configuration mode.
- Configure a Virtual Ethernet interface.
- Assign IP addresses to the VE interface.
- Assign the VE interface to an OSPF area.
- Configure a loopback interface on the VE interface.
- Assign IP addresses to the loopback interface.
- Assign the loopback interface to an OSPF area.
- Set the loopback interface as passive.
- Return to global configuration mode.
- Enable OSPF, and enter OSPF VRF router configuration mode
- Configure an OSPF area.
The following is an example showing EVPN configuration for two VTEPs and an RR on a spine for a BGP EVPN underlay network.
device(config)# interface ve 2 device(config-vif-2)# ip address 2.0.0.1 255.255.255.0 device(config-vif-2)# ip ospf area 0 device(config-vif-2)# interface loopback 1 device(config-lbif-1) ip address 1.1.1.1 255.255.255.255 device(config-lbif-1) ip ospf area 0 device(config-lbif-1) ip ospf passive device(config-lbif-1)# exit device(config)# router ospf device(config-ospf-router)# area 0
device(config)# interface ve 3 device(config-vif-3)# ip address 3.0.0.1 255.255.255.0 device(config-vif-3)# ip ospf area 0 device(config-vif-3)# interface loopback 1 device(config-lbif-1) ip address 2.2.2.2 255.255.255.255 device(config-lbif-1) ip ospf area 0 device(config-lbif-1) ip ospf passive device(config-lbif-1)# exit device(config)# router ospf device(config-ospf-router)# area 0
VTEP-1 <----- ve2----> RR(3.3.3.3) <--- ve3---> VTEP-2:
device(config)# interface ve 2 device(config-vif-2)# ip address 2.0.0.100 255.255.255.0 device(config-vif-2)# ip ospf area 0 device(config-vif-2)# interface ve 3 device(config-vif-3)# ip address 3.0.0.100 255.255.255.0 device(config-vif-3)# ip ospf area 0 device(config-vif-3)# interface loopback 1 device(config-lbif-1) ip address 3.3.3.3 255.255.255.255 device(config-lbif-1) ip ospf area 0 device(config-lbif-1) ip ospf passive device(config-lbif-1)# exit device(config)# router ospf device(config-ospf-router)# area 0