Example: modem with ulaw¶
r1
hostname r1
vrf def v1
rd 1:1
exit
int lo0
vrf for v1
ipv4 addr 2.2.2.2 255.255.255.255
exit
int eth1
vrf for v1
ipv4 addr 1.1.1.1 255.255.255.0
ipv6 addr 1234::1 ffff::
exit
server modem sm
codec ulaw
vrf v1
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
dial-peer 1
codec ulaw
match-calling .*
match-called .*
vrf v1
myname 99
target 1.1.1.1
direction out
exit
r2 tping 100 5 1.1.1.1 vrf v1
r2 send pack modem 11 22
r2 tping 100 5 2.2.2.2 vrf v1
- Install ContainerLab as described here
- Fetch conn-modem02 file
- Launch ContainerLab
conn-modem02.yml
topology:
containerlab deploy --topo conn-modem02.yml
conn-modem02.yml
topology:
containerlab destroy --topo conn-modem02.yml