Configuring EVPN Instances for the Overlay Network

In order to configure BGP EVPN as a Layer 2 extension protocol, certain configurations are required, including enabling BGP EVPN as the layer 2 extension protocol. The following task creates three EVPN instances for a VTEP and sets the configurations for the EVPN instances. EVPN instances corresponding to respective VNIs are also configured. This task sets the configurations for one VTEP (VTEP 1.1.1.1).

  1. Enter global configuration mode.
    device# configure terminal
  2. Enable EVPN configuration mode.
    device(config)# l2vpn evpn
  3. Create an EVPN instance and specify that a VLAN-based VXLAN service model is used.
    device(config-evpn)# evpn-instance 10035 vlan-based
  4. Configure a Layer 2 (L2) VNI.
    device(config-evpn-evi)# vni 10035 l2
  5. Specify that route distinguishers (RDs) are configured automatically for the VNI.
    device(config-evpn-evi)# rd auto
    
  6. Specify that export routes are configured automatically for the VNI.
    device(config-evpn-evi)# route-target export auto
  7. Specify that import routes for the VNI are configured automatically.
    device(config-evpn-evi)# route-target import auto
  8. Return to EVPN configuration mode.
    device(config-evpn-evi)# exit
  9. Create an EVPN instance and specify that a VLAN-based VXLAN service model is used.
    device(config-evpn)# evpn-instance 10036 vlan-based
    
  10. Configure a VNI.
    device(config-evpn-evi)# vni 10036 l2
  11. Specify that RDs, export routes and import routes are configured automatically for the VNI.
    device(config-evpn-evi)# rd auto
    device(config-evpn-evi)# route-target export auto
    device(config-evpn-evi)# route-target import auto
    
  12. Return to EVPN configuration mode.
    device(config-evpn-evi)# exit
  13. Create an EVPN instance and specify that a VLAN-based VXLAN service model is used.
    device(config-evpn)# evpn-instance 10037 vlan-based
  14. Configure a VNI.
    device(config-evpn-evi)# vni 10037 l2
  15. Specify that RDs, export routes and import routes are configured automatically for the VNI.
    device(config-evpn-evi)# rd auto
    device(config-evpn-evi)# route-target export auto
    device(config-evpn-evi)# route-target import auto
    

The following example configures three EVPN instances each for two VTEPs (VTEP 1.1.1.1 and VTEP 2.2.2.2) in an overlay network, and sets the configurations for the EVPN instances.

VTEP-1(1.1.1.1) — ve2 — RR :

device(config)# l2vpn evpn
device(config-evpn)# evpn-instance 10035 vlan-based
device(config-evpn-evi)# vni 10035 l2
device(config-evpn-evi)# rd auto
device(config-evpn-evi)# route-target export auto
device(config-evpn-evi)# route-target import auto
device(config-evpn-evi)# exit
device(config-evpn)# evpn-instance 10036 vlan-based
device(config-evpn-evi)# vni 10036 l2
device(config-evpn-evi)# rd auto
device(config-evpn-evi)# route-target export auto
device(config-evpn-evi)# route-target import auto
device(config-evpn-evi)# exit
device(config-evpn)# evpn-instance 10037 vlan-based
device(config-evpn-evi)# vni 10037 l2
device(config-evpn-evi)# rd auto
device(config-evpn-evi)# route-target export auto
device(config-evpn-evi)# route-target import auto

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

device(config)# l2vpn evpn
device(config-evpn)# evpn-instance 10035 vlan-based
device(config-evpn-evi)# vni 10035 l2
device(config-evpn-evi)# rd auto
device(config-evpn-evi)# route-target export auto
device(config-evpn-evi)# route-target import auto
device(config-evpn-evi)# exit
device(config-evpn)# evpn-instance 10036 vlan-based
device(config-evpn-evi)# vni 10036 l2
device(config-evpn-evi)# rd auto
device(config-evpn-evi)# route-target export auto
device(config-evpn-evi)# route-target import auto
device(config-evpn-evi)# exit
device(config-evpn)# evpn-instance 10037 vlan-based
device(config-evpn-evi)# vni 10037 l2
device(config-evpn-evi)# rd auto
device(config-evpn-evi)# route-target export auto
device(config-evpn-evi)# route-target import auto