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).
- Enter global configuration mode.
- Enable EVPN configuration mode.
- Create an EVPN instance and specify that a VLAN-based VXLAN service model is used.
- Configure a Layer 2 (L2) VNI.
- Specify that route distinguishers (RDs) are configured automatically for the VNI.
- Specify that export routes are configured automatically for the VNI.
- Specify that import routes for the VNI are configured automatically.
- Return to EVPN configuration mode.
- Create an EVPN instance and specify that a VLAN-based VXLAN service model is used.
- Configure a VNI.
- Specify that RDs, export routes and import routes are configured automatically for the VNI.
- Return to EVPN configuration mode.
- Create an EVPN instance and specify that a VLAN-based VXLAN service model is used.
- Configure a VNI.
- Specify that RDs, export routes and import routes are configured automatically for the VNI.
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.
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
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