(config)#hostname CE1 | Configure host name |
(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
(config)#interface xe6 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#exit | Exit interface mode |
(config)#interface xe7 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#bridge-group 1 | Associate bridge to an interface. |
(config-if)#switchport mode trunk | Configure port as a trunk. |
(config-if)#switchport trunk allowed vlan all | Allow all VLANs on the interface. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |
#con t | Enter configure mode |
(config)#hostname VTEP-1 | Configure host name |
(config)#hardware-profile filter vxlan enable | Enable hardware-profile filter for VXLAN |
(config)#hardware-profile statistics ingress-acl enable | Configure hardware profile statistics ingress-acl |
(config)#nvo vxlan enable | Enable VXLAN globally on this vtep |
(config)#mac vrf evpn_sh | Configure a new VRF |
(config-vrf)#rd 1.1.1.1:1 | Assign the Route Distinguisher value. |
(config-vrf)#route-target both 10:1 | Configure route target to import and export the routes |
(config-vrf)#exit | Exit vrf mode |
(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
(config)#interface xe6 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#exit | Exit interface mode |
(config)#interface xe15 | Enter interface mode |
(config-if)#ip address 10.10.10.1/24 | Configure IP address on the interface |
(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 |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Enter router mode for OSPF |
(config-router)#bfd all-interfaces | Enable BFD for all-interface into OSPF |
(config-router)#network 1.1.1.1/32 area 0.0.0.0 | Add 1.1.1.1 network into area 0 |
(config-router)#network 10.10.10.0/24 area 0.0.0.0 | Add 10.10.10.0 network into area 0 |
(config)#router bgp 100 | Enter BGP router mode |
(config-router)#bgp router-id 1.1.1.1 | Assign BGP router ID |
(config-router)#neighbor 2.2.2.2 remote-as 100 | Specify a neighbor router with peer ip address and remote-as defined |
(config-router)#neighbor 2.2.2.2 update-source lo | Specify the neighbor to use loopback address as source |
(config-router)#address-family l2vpn evpn | Enter into l2vpn address family mode |
(config-router-af)#neighbor 2.2.2.2 activate | Activate the peer into address family mode |
(config-router-af)#exit-address-family | Exit l2vpn address family mode |
(config-router)#exit | Exit BGP router mode |
(config)#nvo vxlan vtep-ip-global 1.1.1.1 | Configure Source vtep-ip-global configuration |
(config)#nvo vxlan id 10 xconnect target-vxlan-id 20 | add a tenant and the type of VPN. This creates an ELAN with source and target identifier for ELINE XConnect |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp evpn_sh | Set the host reachable protocol to Ethernet- |
(config-nvo)#nvo vxlan access-if port-vlan xe6 2 | Map the access port xe6 of this VTEP with vlan 2 |
(config-nvo-acc-if)#map vnid 10 | Map the VNID to access-port |
(config-nvo-acc-if)#commit | Commit the candidate configuration to the running configuration. |
(config)#hostname SPINE-1 | Configure hostname |
(config)#hardware-profile statistics ingress-acl enable | Configure hardware profile statistics ingress-acl |
(config)#interface xe8 | Enter interface mode |
(config-if)#ip address 20.20.20.1/24 | Configure IP address on the interface |
(config-if)#exit | Exit interface mode |
(config)#interface xe15 | Enter interface mode |
(config-if)#ip address 10.10.10.2/24 | Configure IP address on the interface |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Enter OSPF router mode |
(config-router)#bfd all-interfaces | Enable BFD for all-interface into OSPF |
(config-router)#network 10.10.10.0/24 area 0.0.0.0 | Add 10.10.10.0 network into area 0 |
(config-router)#network 20.20.20.0/24 area 0.0.0.0 | Add 20.20.20.0 network into area 0 |
(config-router)#commit | Commit the candidate configuration to the running configuration. |
#con t | Enter configure mode |
(config)#hostname VTEP-2 | Configure hostname |
(config)#hardware-profile filter vxlan enable | Enable hardware-profile filter for VXLAN |
(config)#hardware-profile statistics ingress-acl enable | Configure hardware profile statistics ingress-acl |
(config)#nvo vxlan enable | Enable VXLAN globally on this vtep |
(config)#mac vrf evpn_sh | Configure a new VRF |
(config-vrf)#rd 2.2.2.2:1 | Assign the Route Distinguisher value. |
(config-vrf)#route-target both 10:1 | Configure route target to import and export the routes |
(config-vrf)#exit | Exit vrf mode |
(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
(config)#interface xe6 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#exit | Exit interface mode |
(config)#interface xe8 | Enter interface mode |
(config-if)#ip address 20.20.20.2/24 | Configure IP address on the interface |
(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 |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Enter into router ospf mode |
(config-router)#bfd all-interfaces | Enable BFD for all-interface into OSPF |
(config-router)#network 2.2.2.2/32 area 0.0.0.0 | Add lo ip address 2.2.2.2 as network into area 0 |
(config-router)#network 20.20.20.0/24 area 0.0.0.0 | Add 20.20.20.0 network into area 0 |
(config-router)#exit | Exit router mode |
(config)#router bgp 100 | Enter BGP router mode |
(config-router)#bgp router-id 2.2.2.2 | Assign BGP router ID |
(config-router)#neighbor 1.1.1.1 remote-as 100 | Specify a neighbor router with peer ip address and remote-as defined |
(config-router)#neighbor 1.1.1.1 update-source lo | Specify the neighbor to use loopback address as source |
(config-router)#address-family l2vpn evpn | Enter into l2vpn address family mode |
(config-router-af)#neighbor 1.1.1.1 activate | Activate the peer into address family mode |
(config-router-af)#exit-address-family | Exit l2vpn address family mode |
(config-router)#exit | Exit BGP router mode |
(config)#nvo vxlan vtep-ip-global 2.2.2.2 | Configure Source vtep-ip-global configuration |
(config)#nvo vxlan id 20 xconnect target-vxlan-id 10 | add a tenant and the type of VPN. This creates an ELAN with source and target identifier for ELINE XConnect |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp evpn_sh | Set the host reachable protocol to Ethernet- |
(config-nvo)#nvo vxlan access-if port-vlan xe6 2 | Map the access port xe6 of this VTEP with vlan 2 |
(config-nvo-acc-if)#map vnid 20 | Map the VNID to access-port |
(config-nvo-acc-if)#commit | Commit the candidate configuration to the running configuration. |
(config)#hostname CE1 | Configure host name |
(config)#bridge 1 protocol ieee vlan-bridge | Configure bridge as IEEE VLAN bridge |
(config)#interface xe6 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#exit | Exit interface mode |
(config)#interface xe7 | Enter interface mode |
(config-if)#switchport | Configure the interface as switchport |
(config-if)#bridge-group 1 | Associate bridge to an interface. |
(config-if)#switchport mode trunk | Configure port as a trunk. |
(config-if)#switchport trunk allowed vlan all | Allow all VLANs on the interface. |
(config-if)#commit | Commit the candidate configuration to the running configuration. |