Example: vdc parent interface¶
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
- Install ContainerLab as described here
- Fetch conn-vdc01 file
- Launch ContainerLab
conn-vdc01.yml
topology:
containerlab deploy --topo conn-vdc01.yml
conn-vdc01.yml
topology:
containerlab destroy --topo conn-vdc01.yml