#configure terminal | Enter configure mode |
(config)#interface xe1 | Enter interface mode |
(config-if)#switchport | Configure the interface as a switch port. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode |
(config)#interface xe2 | Enter interface mode |
(config-if)#switchport | Configure the interface as switch port. |
(config-if)#no shutdown | Bring the interface into operation. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe22 | Enter interface mode. |
(config-if)#ip address 10.1.1.1/24 | Set an IP address on the interface. |
(config-if)#no shutdown | Bring the interface into operation. |
(config-if)#exit | Exit interface mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 1.1.1.1/32 secondary | Set an IP address on the interface. |
(config-if)#no shutdown | Bring the interface into operation. |
(config-if)#exit | Exit interface mode. |
(config)#router isis ABC | Create an IS-IS routing instance (ABC). |
(config-router)#is-type level-1 | Configure instance as level-1-only routing. |
(config-router)#net 49.0001.1111.1111.1111.00 | Set a Network Entity Title for this instance, specifying the area address and the system ID. |
(config-router)#exit | Exit router mode. |
(config)#interface xe22 | Enter interface mode |
(config-if)#ip router isis ABC | Enable IS-IS routing on an interface (ABC). |
(config-if)#isis circuit-type level-1 | Configure instance as level-1-only routing. |
(config-if)#exit | Exit interface mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip router isis ABC | Enable IS-IS routing on an interface for area 49 (ABC). |
(config-if)#isis circuit-type level-1 | Configure instance as level-1-only routing. |
(config-if)#exit | Exit interface mode. |
(config)#mac vrf vrf_evpn_100 | Configure a new VRF named vrf_evpn_100. |
(config-vrf)#rd 1.1.1.1:1 | Assign the Route Distinguisher value. |
(config-vrf)#route-target both 100:1 | Configure route target to import and export the routes. |
(config-vrf)#exit | Exit VRF mode. |
(config)#router bgp 1 | Define the routing process. The number 1 specifies the AS number of VTEP1. |
(config-router)#bgp router-id 1.1.1.1 | Configure router-id for this BGP process. |
(config-router)#neighbor 2.2.2.2 remote-as 1 | Define BGP neighbor: 2.2.2.2 is the IP address of the neighbor (VTEP2), and 1 is the neighbor’s AS number. |
(config-router)# neighbor 2.2.2.2 update-source 1.1.1.1 | Define BGP neighbor: 1.1.1.1 is the peer interface. |
(config-router)#address-family l2vpn evpn | Configure address-family L2VPN EVPN. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor in the EVPN address family. |
(config-router-af)#exit-address-family | Exit the address-family mode. |
(config-router)#exit | Exit router mode. |
(config)#hardware-profile filter vxlan enable | Enable hardware-profile filter for VXLAN. |
(config)#nvo vxlan enable | Enable VXLAN globally on this VTEP. |
(config)#nvo vxlan vtep-ip-global 1.1.1.1 | Assign a global IP to the VTEP. |
(config)#nvo vxlan id 100 ingress-replication | Configure a VNID on this VTEP and enter NVO mode. |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf_evpn_100 | Configure host-reachability-protocol as BGP-EVPN and associate the VNID with vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe1 2 | Configure access-port xe1 and map vlan 2 |
(config-nvo-acc-if)#map vnid 100 | Map VNID 100 to access-port xe1. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#nvo vxlan id 200 ingress-replication | Configure second VNID on this VTEP and enter NVO mode. |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf_evpn_100 | Configure host-reachability-protocol as BGP-EVPN and associate the VNID with vrf_evpn_100 |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe2 3 | Configure access-port xe2 and map vlan 3 |
(config-nvo-acc-if)#map vnid 200 | Map VNID 200 to access-port xe2. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#commit | Commit the configurations |
(config)#interface xe1.1 switchport | Create L2 subinterface xe1.1 |
(config-if)#encapsulation dot1q 2 | Configure encapsulation dot1q with vlan-id 2 |
(config-if)#access-if-evpn | Enter access-if-evpn mode |
(config-acc-if-evpn)#map vpn-id 100 | Map vnid 100 to access interface xe1.1 |
(config-acc-if-evpn)#exit | Exit access-if-evpn mode |
(config)#interface xe2.1 switchport | Create L2 subinterface xe2.1 |
(config-if)#encapsulation dot1q 3 | Configure encapsulation dot1q with vlan-id 3 |
(config-if)#access-if-evpn | Enter access-if-evpn mode |
(config-acc-if-evpn)#map vpn-id 200 | Map vnid 200 to access interface xe2.1 |
(config-acc-if-evpn)#exit | Exit access-if-evpn mode |
(config-if)#commit | Commit the configurations |
#configure terminal | Enter configure mode. |
(config)#interface xe22 | Enter interface mode. |
(config-if)#ip address 10.1.1.2/24 | Set an IP address on the interface. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe11 | Enter interface mode. |
(config-if)#ip address 20.1.1.2/24 | Set an IP address on the interface. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#router isis ABC | Create an IS-IS routing instance (ABC). |
(config-router)#is-type level-1 | Configure instance as level-1-only routing. |
(config-router)#net 49.0001.3333.3333.3333.00 | Set a Network Entity Title for this instance, specifying the area address and the system ID. |
(config-router)#exit | Exit router mode. |
(config)#interface xe22 | Enter interface mode. |
(config-if)#ip router isis ABC | Enable IS-IS routing on an interface (ABC). |
(config-if)#isis circuit-type level-1 | Configure instance as level-1-only routing. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe11 | Enter interface mode. |
(config-if)#ip router isis ABC | Enable IS-IS routing on an interface (ABC). |
(config-if)#isis circuit-type level-1 | Configure instance as level-1-only routing. |
(config-if)#exit | Exit interface mode. |
(config)#commit | Commit the configurations |
#configure terminal | Enter configure mode. |
(config)#interface xe1 | Enter interface mode. |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe11 | Enter interface mode. |
(config-if)#ip address 20.1.1.1/24 | Set an IP address on the interface. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 2.2.2.2/32 secondary | Set an IP address on the interface. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#router isis ABC | Create an IS-IS routing instance (ABC). |
(config-router)#is-type level-1 | Configure instance as level-1-only routing. |
(config-router)#net 49.0001.2222.2222.2222.00 | Set a Network Entity Title for this instance, specifying the area address and the system ID. |
(config-router)#exit | Exit router mode. |
(config)#interface xe11 | Enter interface mode. |
(config-if)#ip router isis ABC | Enable IS-IS routing on an interface (ABC). |
(config-if)#isis circuit-type level-1 | Configure instance as level-1-only routing. |
(config-if)#exit | Exit interface mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip router isis ABC | Enable IS-IS routing on an interface for area 49 (ABC). |
(config-if)#isis circuit-type level-1 | Configure instance as level-1-only routing. |
(config-if)#exit | Exit interface mode. |
(config)#mac vrf vrf_evpn_100 | Configure a new VRF named vrf_evpn_100. |
(config-vrf)#rd 2.2.2.1:1 | Assign the Route Distinguisher value. |
(config-vrf)#route-target both 100:1 | Configure route target to import and export the routes. |
(config-vrf)#exit | Exit VRF mode. |
(config)#router bgp 1 | Define the routing process. The number 1 specifies the AS number of VTEP1. |
(config-router)#neighbor 1.1.1.1 remote-as 1 | Define BGP neighbor: 1.1.1.1 is the IP address of the neighbor (VTEP1), and 1 is the neighbor’s AS number. |
(config-router)# neighbor 1.1.1.1 update-source 2.2.2.2 | Define BGP neighbor: 2.2.2.2 is the peer interface. |
(config-router)#address-family l2vpn evpn | Configure address-family L2VPN EVPN. |
(config-router-af)#neighbor 1.1.1.1 activate | Activate the neighbor in the EVPN address family. |
(config-router-af)#exit-address-family | Exit address-family mode. |
(config-router)#exit | Exit router mode. |
(config)#hardware-profile filter vxlan enable | Enable hardware-profile filter for VXLAN. |
(config)#nvo vxlan enable | Enable VXLAN globally on this VTEP. |
(config)#nvo vxlan vtep-ip-global 2.2.2.2 | Assign a global IP to the VTEP. |
(config)#nvo vxlan id 100 ingress-replication | Configure a VNID on this VTEP and enter NVO mode. |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf_evpn_100 | Configure host-reachability-protocol as BGP-EVPN and associate the VNID with vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe1 2 | Configure access-port xe1 and map vlan 2 |
(config-nvo-acc-if)#map vnid 100 | Map VNID 100 to access-port xe1. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#nvo vxlan id 200 ingress-replication | Configure second VNID on this VTEP and enter NVO mode. |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf_evpn_100 | Configure host-reachability-protocol as BGP-EVPN and associate the VNID with vrf_evpn_100 |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe2 3 | Configure access-port xe2 and map vlan 3 |
(config-nvo-acc-if)#map vnid 200 | Map VNID 200 to access-port xe2. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#commit | Commit the configurations |
(config)#interface xe1.1 switchport | Create L2 subinterface xe1.1 |
(config-if)#encapsulation dot1q 2 | Configure encapsulation dot1q with vlan-id 2 |
(config-if)#access-if-evpn | Enter access-if-evpn mode |
(config-acc-if-evpn)#map vpn-id 100 | Map vnid 100 to access interface xe1.1 |
(config-acc-if-evpn)#exit | Exit access-if-evpn mode |
(config)#interface xe2.1 switchport | Create L2 subinterface xe2.1 |
(config-if)#encapsulation dot1q 3 | Configure encapsulation dot1q with vlan-id 3 |
(config-if)#access-if-evpn | Enter access-if-evpn mode |
(config-acc-if-evpn)#map vpn-id 200 | Map vnid 200 to access interface xe2.1 |
(config-acc-if-evpn)#exit | Exit access-if-evpn mode |
(config-if)#commit | Commit the configurations |
VLAN | IP Address | Mac Address | ||
---|---|---|---|---|
VTEP1 | CE-1 | 2 | 12.12.12.10 | 0000.0000.abab |
VTEP2 | CE-2 | 2 | 12.12.12.20 | 0000.0000.cdcd |
VTEP1 | CE-1 | 3 | 13.13.13.10 | 0000:0b60:25f2 |
VTEP2 | CE-2 | 3 | 13.13.13.20 | 0000:0b60:25f3 |