#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)#mac vrf vrf_evpn_200 | Configure a new VRF named vrf_evpn_200. |
(config-vrf)#rd 1.1.1.1:2 | Assign the Route Distinguisher value. |
(config-vrf)#route-target both evpn-auto-rt | 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_200 | Configure host-reachability-protocol as BGP-EVPN and associate the VNID with vrf_evpn_200 |
(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.2: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)#mac vrf vrf_evpn_200 | Configure a new VRF named vrf_evpn_200. |
(config-vrf)#rd 2.2.2.2:2 | Assign the Route Distinguisher value. |
(config-vrf)#route-target both evpn-auto-rt | 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_200 | Configure host-reachability-protocol as BGP-EVPN and associate the VNID with vrf_evpn_200. |
(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 |
#configure terminal | Enter configure mode |
(config)#bridge 1 protocol ieee vlan-bridge | Configure IEEE vlan bridge |
(config)#vlan database | Enter into the vlan database |
(config-vlan)#vlan 2 bridge 1 state enable | Configure vlan 2 and associate with bridge 1 |
(config-vlan)#vlan 3 bridge 1 state enable | Configure vlan 3 and associate with bridge 1 |
(config-vlan)#exit | Exit from the vlan database |
(config)#in xe41 | Enter interface mode |
(config-if)#no shutdown | Make interface admin up |
(config-if)#switchport | Set the interface as Layer2 port |
(config-if)#bridge-group 1 | Associate the Interface with bridge-group. |
(config-if)#switchport mode trunk | Set the switching characteristics of this interface to trunk mode |
(config-if)#switchport trunk allowed vlan add 2 | Configure the VLANs that should be allowed through this interface |
(config-if)#switchport trunk allowed vlan add 3 | Configure the VLANs that should be allowed through this interface |
(config-if)#exit | Exit interface mode. |
(config)#interface po1 | Enter interface mode |
(config-if)#switchport | Set the interface as Layer2 port |
(config-if)#exit | Exit interface mode. |
(config)#in xe29 | Enter interface mode |
(config-if)#switchport | Set the interface as Layer2 port |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#exit | Exit interface mode. |
(config)#in xe30 | Enter interface mode |
(config-if)#switchport | Set the interface as Layer2 port |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#exit | Exit interface mode. |
(config)#in xe31 | Enter interface mode |
(config-if)#switchport | Set the interface as Layer2 port |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#exit | Exit interface mode. |
(config)#in xe32 | Enter interface mode |
(config-if)#switchport | Set the interface as Layer2 port |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#exit | Exit interface mode. |
(config-if)#inter po1 | Enter interface mode |
(config-if)#bridge-group 1 | Associate the Interface with bridge-group. |
(config-if)#switchport mode trunk | Set the switching characteristics of this interface to trunk mode |
(config-if)#switchport trunk allowed vlan add 2 | Configure the VLANs that should be allowed through this interface |
(config-if)#switchport trunk allowed vlan add 3 | Configure the VLANs that should be allowed through this interface |
(config-if)#exit | Exit interface mode. |
(config)#commit | Commit the configurations |
#configure terminal | Enter configure mode |
(config)#interface po1 | Create interface po1 |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#exit | Exit interface mode |
(config)#interface xe3 | 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 xe5 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode |
(config)#interface xe6 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode |
(config)#interface xe7 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode |
(config)#interface xe8 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport. |
(config-if)#channel-group 1 mode active | Configure the interface to be part of port channel 1 |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe1 | Enter interface mode. |
(config-if)#ip address 10.1.1.0/31 | Configure IP address on the interface xe1. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#ip address 10.1.1.2/31 | Configure IP address on the interface xe2. |
(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 | Configure IP address on the interface xe3. |
(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 | Set a Network Entity Title for this instance, specifying the |
49.0001.1111.1111.1111.00 | area address and the system ID. |
(config-router)#exit | Exit router mode. |
(config)#interface xe1 | 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 xe2 | 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 65535 | Define the routing process. The number 65535 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 65535 | Define BGP neighbor: 2.2.2.2 is the IP address of the neighbor (VTEP2), and 65535 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)#neighbor 3.3.3.3 remote-as 65535 | Define BGP neighbor: 3.3.3.3 is the IP address of the neighbor (VTEP3), and 65535 is the neighbor’s AS number. |
(config-router)# neighbor 3.3.3.3 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 at VTEP2 in the EVPN address family. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor at VTEP3 in the EVPN address family. |
(config-router-af)#exit-adress-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 1.1.1.1 | Assign a global IP to the VTEP. |
(config)#nvo vxlan id 100001 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 vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe3 2 | Configure access-port xe3 and map vlan 2 |
(config-nvo-acc-if)#map vnid 100001 | Map VNID 100001 to access-port xe3. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#nvo vxlan access-if port-vlan po1 2 | Configure access-port po1 and map vlan 2 |
(config-nvo-acc-if)#map vnid 100001 | Map VNID 100001 to access-port po1. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#nvo vxlan id 200001 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 vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe3 3 | Configure access-port xe3 and map vlan 3 |
(config-nvo-acc-if)#map vnid 200001 | Map VNID 200001 to access-port xe3. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#nvo vxlan access-if port-vlan po1 3 | Configure access-port po1 and map vlan 3 |
(config-nvo-acc-if)#map vnid 200001 | Map VNID 200001 to access-port xe3. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#commit | Commit the configurations |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode |
(config-if)#ip address 12.12.12.12/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)#interface xe1 | Enter interface mode. |
(config-if)#ip address 10.1.1.1/31 | Configure IP address on the interface xe1. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#ip address 20.1.1.1/31 | Configure IP address on the interface xe2. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe3 | Enter intereface mode. |
(config-if)#ip address 30.1.1.1/31 | Configure IP address on the interface xe3. |
(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.4444.4444.4444.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 lo | 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 xe1 | 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 xe2 | 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 xe3 | 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 lo | Enter interface mode. |
(config-if)#ip address 13.13.13.13/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)#interface xe1 | Enter interface mode. |
(config-if)#ip address 10.1.1.3/31 | Configure IP address on the interface xe1. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#ip address 20.1.1.3/31 | Configure IP address on the interface xe2. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe3 | Enter interface mode. |
(config-if)#ip address 30.1.1.3/31 | Configure IP address on the interface xe3. |
(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.5555.5555.5555.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 lo | 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 xe1 | 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 xe2 | 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 xe3 | 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 po1 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#exit | Exit interface mode |
(config)#interface xe3 | 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 xe1 | Enter interface mode. |
(config-if)#ip address 20.1.1.0/31 | Configure IP address on the interface xe1. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#ip address 20.1.1.2/31 | Configure IP address on the interface xe2. |
(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 | Configure IP address on the interface xe3. |
(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 xe1 | 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 xe2 | 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 65535 | Define the routing process. The number 65535 specifies the AS number of VTEP1. |
(config-router)#neighbor 1.1.1.1 remote-as 65535 | Define BGP neighbor: 1.1.1.1 is the IP address of the neighbor (VTEP1), and 65535 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)#neighbor 3.3.3.3 remote-as 65535 | Define BGP neighbor: 3.3.3.3 is the IP address of the neighbor (VTEP3), and 65535 is the neighbor’s AS number. |
(config-router)#neighbor 3.3.3.3 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 at VTEP1 in the EVPN address family. |
(config-router-af)#neighbor 3.3.3.3 activate | Activate the neighbor at VTEP3 in the EVPN address family. |
(config-router-af)#exit-adress-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 100001 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 vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe3 2 | Configure access-port xe3 and map vlan 2 |
(config-nvo-acc-if)#map vnid 100001 | Map VNID 100001 to access-port xe3. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#nvo vxlan id 200001 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 vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe3 3 | Configure access-port xe3 and map vlan 3 |
(config-nvo-acc-if)#map vnid 200001 | Map VNID 200001 to access-port xe3. |
(config-nvo-acc-if)#exit-adress-family | Exit NVO access-if mode. |
(config)#commit | Commit the configurations |
#configure terminal | Enter configure mode. |
(config)#interface xe3 | 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 xe1 | Enter interface mode. |
(config-if)#ip address 30.1.1.0/31 | Configure IP address on the interface xe1. |
(config-if)#no shutdown | Bring the interface into operation |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#ip address 30.1.1.2/31 | Configure IP address on the interface xe2. |
(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 3.3.3.3/32 secondary | Configure IP address on the loopback 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 xe1 | 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 xe2 | 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 65535 | Define the routing process. The number 65535 specifies the AS number of VTEP1. |
(config-router)#neighbor 1.1.1.1 remote-as 65535 | Define BGP neighbor: 1.1.1.1 is the IP address of the neighbor (VTEP1), and 65535 is the neighbor’s AS number. |
(config-router)#neighbor 1.1.1.1 update-source 3.3.3.3 | Define BGP neighbor: 3.3.3.3 is the peer interface. |
(config-router)#neighbor 2.2.2.2 remote-as 65535 | Define BGP neighbor: 2.2.2.2 is the IP address of the neighbor (VTEP3), and 65535 is the neighbor’s AS number. |
(config-router)#neighbor 2.2.2.2 update-source 3.3.3.3 | Define BGP neighbor: 3.3.3.3 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 at VTEP1 in the EVPN address family. |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the neighbor at VTEP2 in the EVPN address family. |
(config-router-af)#exit-adress-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 3.3.3.3 | Assign a global IP to the VTEP. |
(config)#nvo vxlan id 100001 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 vrf_evpn_100. |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe3 2 | Configure access-port xe3 and map vlan 2 |
(config-nvo-acc-if)#map vnid 100001 | Map VNID 100001 to access-port xe3. |
(config-nvo-acc-if)#exit-address-family | Exit NVO access-if mode. |
(config)#nvo vxlan id 200001 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 vrf_evpn_100 |
(config-nvo)#exit | Exit NVO mode. |
(config)#nvo vxlan access-if port-vlan xe3 3 | Configure access-port xe3 and map vlan 3 |
(config-nvo-acc-if)#map vnid 200001 | Map VNID 200001 to access-port xe3. |
(config-nvo-acc-if)#exit | Exit NVO access-if mode. |
(config)#commit | Commit the configurations |
VLAN | IP Address | MAC Address | ||
VTEP1 | CE-1 | 2 | 12.12.12.10 | 0000.0000.aaaa |
VTEP1 | CE-2 | 2 | 12.12.12.20 | 0000.0000.bbbb |
VTEP2 | CE-3 | 2 | 12.12.12.30 | 0000.0000.cccc |
VTEP3 | CE-4 | 2 | 12.12.12.40 | 0000.0000.dddd |
VTEP1 | CE-1 | 3 | 14.14.14.10 | 0000.058e.2181 |
VTEP1 | CE-2 | 3 | 14.14.14.20 | 0000.058e.2182 |
VTEP2 | CE-3 | 3 | 14.14.14.30 | 0000.058e.2183 |
VTEP3 | CE-4 | 3 | 14.14.14.40 | 0000.058e.2184 |