Aim of this lab is to create a layer 2 circuit between switch6 & switch7 and form an OSPF adjacency. IS-IS is used for the underlay as it’s better (it really is!).
CSR1
conf t
hostname csr1
mpls label protocol ldp
l2vpn evpn logging vc-state
l2vpn
router-id 5.5.5.5
interface Loopback0
ip address 5.5.5.5 255.255.255.255
ip router isis 1
interface GigabitEthernet1
ip address 1.1.1.1 255.255.255.252
ip router isis 1
mpls ip
interface GigabitEthernet2
no ip address
service instance 1 ethernet
encapsulation dot1q 1000
rewrite ingress tag pop 1 symmetric
router isis 1
net 49.0000.5555.5555.5555.00
router bgp 65200
bgp log-neighbor-changes
neighbor 6.6.6.6 remote-as 65200
neighbor 6.6.6.6 update-source Loopback0
address-family ipv4
neighbor 6.6.6.6 activate
exit-address-family
address-family l2vpn evpn
neighbor 6.6.6.6 activate
exit-address-family
l2vpn evpn instance 1 point-to-point
vpws context cust1
service target 1 source 2
member GigabitEthernet2 service-instance 1
CSR2
conf t
hostname csr2
mpls label protocol ldp
interface Loopback0
ip address 6.6.6.6 255.255.255.255
ip router isis 1
interface GigabitEthernet1
ip address 1.1.1.2 255.255.255.252
ip router isis 1
mpls ip
interface GigabitEthernet2
ip address 2.2.2.1 255.255.255.252
ip router isis 1
mpls ip
router isis 1
net 49.0000.6666.6666.6666.00
router bgp 65200
bgp log-neighbor-changes
neighbor 5.5.5.5 remote-as 65200
neighbor 5.5.5.5 update-source Loopback0
neighbor 7.7.7.7 remote-as 65200
neighbor 7.7.7.7 update-source Loopback0
address-family ipv4
neighbor 5.5.5.5 activate
neighbor 7.7.7.7 activate
exit-address-family
address-family l2vpn evpn
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 route-reflector-client
neighbor 7.7.7.7 activate
exit-address-family
CSR3
conf t
hostname csr3
mpls label protocol ldp
interface Loopback0
ip address 7.7.7.7 255.255.255.255
ip router isis 1
interface GigabitEthernet1
ip address 2.2.2.2 255.255.255.252
ip router isis 1
mpls ip
interface GigabitEthernet2
ip address 3.3.3.1 255.255.255.252
ip router isis 1
mpls ip
router isis 1
net 49.0000.7777.7777.7777.00
router bgp 65200
bgp log-neighbor-changes
neighbor 6.6.6.6 remote-as 65200
neighbor 6.6.6.6 update-source Loopback0
neighbor 8.8.8.8 remote-as 65200
neighbor 8.8.8.8 update-source Loopback0
address-family ipv4
neighbor 6.6.6.6 activate
neighbor 8.8.8.8 activate
exit-address-family
address-family l2vpn evpn
neighbor 6.6.6.6 activate
neighbor 6.6.6.6 route-reflector-client
neighbor 8.8.8.8 activate
neighbor 8.8.8.8 route-reflector-client
exit-address-family
CSR4
conf t
hostname csr4
mpls label protocol ldp
interface Loopback0
ip address 8.8.8.8 255.255.255.255
ip router isis 1
interface GigabitEthernet1
ip address 3.3.3.2 255.255.255.252
ip router isis 1
mpls ip
interface GigabitEthernet2
ip address 4.4.4.1 255.255.255.252
ip router isis 1
mpls ip
router isis 1
net 49.0000.8888.8888.8888.00
router bgp 65200
bgp log-neighbor-changes
neighbor 7.7.7.7 remote-as 65200
neighbor 7.7.7.7 update-source Loopback0
neighbor 9.9.9.9 remote-as 65200
neighbor 9.9.9.9 update-source Loopback0
address-family ipv4
neighbor 7.7.7.7 activate
neighbor 9.9.9.9 activate
exit-address-family
address-family l2vpn evpn
neighbor 7.7.7.7 activate
neighbor 9.9.9.9 activate
neighbor 9.9.9.9 route-reflector-client
exit-address-family
CSR5
conf t
hostname csr5
mpls label protocol ldp
l2vpn
router-id 9.9.9.9
interface Loopback0
ip address 9.9.9.9 255.255.255.255
ip router isis 1
interface GigabitEthernet1
ip address 4.4.4.2 255.255.255.252
ip router isis 1
mpls ip
interface GigabitEthernet2
no ip address
service instance 1 ethernet
encapsulation dot1q 1000
rewrite ingress tag pop 1 symmetric
router isis 1
net 49.0000.9999.9999.9999.00
router bgp 65200
bgp log-neighbor-changes
neighbor 8.8.8.8 remote-as 65200
neighbor 8.8.8.8 update-source Loopback0
address-family ipv4
neighbor 8.8.8.8 activate
exit-address-family
address-family l2vpn evpn
neighbor 8.8.8.8 activate
exit-address-family
mpls ldp router-id Loopback0
l2vpn evpn instance 1 point-to-point
vpws context cust1
service target 2 source 1
member GigabitEthernet2 service-instance 1
Once all devices configured, run ‘show l2vpn evpn vc id 1‘ to confirm circuit is up and then configure OSPF on your CE devices (use whatever you prefer) and the adjacency will come up.