Skip to content

Example: modem with alaw through proxy

Alt text

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 alaw
 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 alaw
 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 alaw
 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
  1. Install ContainerLab as described here
  2. Fetch conn-modem03 file
  3. Launch ContainerLab conn-modem03.yml topology:

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

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

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

   Ctrl-C (In freeRtr test window)