Skip to content

Example: xconnect terminated on pwhe xconnect evcs

Alt text

r1

hostname r1
vrf def v1
 rd 1:1
 exit
int eth1.11
 vrf for v1
 ipv4 addr 1.1.1.1 255.255.255.0
 ipv6 addr 1111::1 ffff::
 exit
int eth1.12
 vrf for v1
 ipv4 addr 1.1.2.1 255.255.255.0
 ipv6 addr 1112::1 ffff::
 exit
int eth1.13
 vrf for v1
 ipv4 addr 1.1.3.1 255.255.255.0
 ipv6 addr 1113::1 ffff::
 exit

r2

hostname r2
vrf def v1
 rd 1:1
 exit
int eth2
 vrf for v1
 ipv4 addr 2.2.2.1 255.255.255.0
 ipv6 addr 2222::1 ffff::
 exit
int eth1
 xconn v1 eth2 vxlan 2.2.2.2 123
 exit

r3

hostname r3
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 2.2.2.2 255.255.255.0
 ipv6 addr 2222::2 ffff::
 exit
int eth2
 vrf for v1
 ipv4 addr 3.3.3.1 255.255.255.0
 ipv6 addr 3333::1 ffff::
 exit
int pweth1
 service-inst 11 xconn v1 eth2 vxlan 3.3.3.2 123
 service-inst 12 xconn v1 eth2 geneve 3.3.3.2 123
 service-inst 13 xconn v1 eth2 etherip 3.3.3.2 123
 pseudo v1 eth1 vxlan 2.2.2.1 123
 exit

r4

hostname r4
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 3.3.3.2 255.255.255.0
 ipv6 addr 3333::2 ffff::
 exit
int pweth11
 vrf for v1
 ipv4 addr 1.1.1.2 255.255.255.0
 ipv6 addr 1111::2 ffff::
 pseudo v1 eth1 vxlan 3.3.3.1 123
 exit
int pweth12
 vrf for v1
 ipv4 addr 1.1.2.2 255.255.255.0
 ipv6 addr 1112::2 ffff::
 pseudo v1 eth1 geneve 3.3.3.1 123
 exit
int pweth13
 vrf for v1
 ipv4 addr 1.1.3.2 255.255.255.0
 ipv6 addr 1113::2 ffff::
 pseudo v1 eth1 etherip 3.3.3.1 123
 exit
r1 tping 100 10 1.1.1.2 vrf v1
r1 tping 100 10 1111::2 vrf v1
r1 tping 100 10 1.1.2.2 vrf v1
r1 tping 100 10 1112::2 vrf v1
r1 tping 100 10 1.1.3.2 vrf v1
r1 tping 100 10 1113::2 vrf v1
r4 tping 100 10 1.1.1.1 vrf v1
r4 tping 100 10 1111::1 vrf v1
r4 tping 100 10 1.1.2.1 vrf v1
r4 tping 100 10 1112::1 vrf v1
r4 tping 100 10 1.1.3.1 vrf v1
r4 tping 100 10 1113::1 vrf v1
  1. Install ContainerLab as described here
  2. Fetch mpls-evc10 file
  3. Launch ContainerLab mpls-evc10.yml topology:

   containerlab deploy --topo mpls-evc10.yml  
4. Destroy ContainerLab mpls-evc10.yml topology:

   containerlab destroy --topo mpls-evc10.yml  
5. Copy-paste configuration for each node in the lab topology

  1. Fetch or compile freeRtr rtr.jar file.
    You can grab it here
  2. Fetch mpls-evc10.tst file here
  3. Launch mpls-evc10.tst test:

   java -jar ../../rtr.jar test tester mpls-evc10 path ./ temp ./ wait
4. Destroy freeRtr mpls-evc10.tst test:

   Ctrl-C (In freeRtr test window)