Example: modem with ulaw through proxy¶
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
int eth2
vrf for v1
ipv4 addr 1.1.2.1 255.255.255.0
ipv6 addr 2345::1 ffff::
exit
dial-peer 1
codec ulaw
match-calling .*
match-called .*
vrf v1
myname 99
target 1.1.1.1
direction out
exit
server sip sp
vrf v1
exit
r3
hostname r3
vrf def v1
rd 1:1
exit
int eth1
vrf for v1
ipv4 addr 1.1.2.2 255.255.255.0
ipv6 addr 2345::2 ffff::
exit
dial-peer 1
codec ulaw
match-calling .*
match-called .*
vrf v1
myname 99
register 1000
target 1.1.2.1
direction out
exit
r2 tping 100 5 1.1.2.2 vrf v1
r2 tping 100 5 1.1.1.1 vrf v1
r3 tping 100 5 1.1.2.1 vrf v1
r1 tping 100 5 1.1.1.2 vrf v1
r3 send pack modem 11 22
r3 tping 100 5 2.2.2.2 vrf v1
- Install ContainerLab as described here
- Fetch conn-modem04 file
- Launch ContainerLab
conn-modem04.yml
topology:
containerlab deploy --topo conn-modem04.yml
conn-modem04.yml
topology:
containerlab destroy --topo conn-modem04.yml