Skip to content

Example: serial hairpin

Alt text


hostname r1
vrf def v1
 rd 1:1
vrf def v2
 rd 1:2
hairpin 1
 no ether
int hairpin11
 vrf for v1
 ipv4 addr
 ipv6 addr 1234::1 ffff::
int hairpin12
 vrf for v2
 ipv4 addr
 ipv6 addr 1234::2 ffff::
r1 tping 100 5 vrf v1
r1 tping 100 5 vrf v2
r1 tping 100 5 1234::2 vrf v1
r1 tping 100 5 1234::1 vrf v2
  1. Install ContainerLab as described here
  2. Fetch conn-hairpin02 file
  3. Launch ContainerLab conn-hairpin02.yml topology:

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

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

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

   Ctrl-C (In freeRtr test window)