Skip to content

Example: vdc parent interface

Alt text

r1

hostname r1
vdc def a
 int eth1
 exit
vrf def v1
 rd 1:1
 exit
int lo0
 vrf for v1
 ipv4 addr 9.9.9.9 255.255.255.255
 exit

r2

hostname r2
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.2 255.255.255.0
 ipv6 addr 1234::2 ffff::
 exit
port 61000 62000
r1 tping 100 5 9.9.9.9 vrf v1
r1 send att vdc a
r1 send conf t
r1 send vrf def v1
r1 send  rd 1:1
r1 send  exit
r1 send int eth1
r1 send  vrf for v1
r1 send  ipv4 addr 1.1.1.1 255.255.255.0
r1 send  ipv6 addr 1234::1 ffff::
r1 send  exit
r1 send end
r1 tping 100 5 1.1.1.2 vrf v1
r2 tping 100 5 1.1.1.1 vrf v1
r1 tping 100 5 1234::2 vrf v1
r2 tping 100 5 1234::1 vrf v1
  1. Install ContainerLab as described here
  2. Fetch conn-vdc01 file
  3. Launch ContainerLab conn-vdc01.yml topology:

   containerlab deploy --topo conn-vdc01.yml  
4. Destroy ContainerLab conn-vdc01.yml topology:

   containerlab destroy --topo conn-vdc01.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 conn-vdc01.tst file here
  3. Launch conn-vdc01.tst test:

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

   Ctrl-C (In freeRtr test window)