Skip to content

Example: ppp routes with local authentication

Alt text

r1

hostname r1
vrf def v1
 rd 1:1
 exit
prefix-list p4
 permit 0.0.0.0/0
 exit
prefix-list p6
 permit ::/0
 exit
int lo1
 vrf for v1
 ipv4 addr 2.2.2.1 255.255.255.255
 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 exit
int ser1
 enc ppp
 ppp ip4cp open
 ppp ip4cp local 0.0.0.0
 ppp ip6cp open
 ppp user c
 ppp pass c
 vrf for v1
 ipv4 addr dynamic dynamic
 ipv4 gateway-prefix p4
 ipv6 addr dynamic dynamic
 ipv6 gateway-prefix p6
 exit

r2

hostname r2
vrf def v1
 rd 1:1
 exit
int lo1
 vrf for v1
 ipv4 addr 2.2.2.2 255.255.255.255
 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 exit
aaa userlist usr
 username c password c
 username c ipv4addr 1.1.1.1
 username c ipv4route 2.2.2.1/32 dist 123
 username c ipv6addr 1234::1
 username c ipv6ifid 1234-1234-1234-1234
 username c ipv6route 4321::1/128 dist 222
 exit
int ser1
 enc ppp
 ppp ip4cp local 1.1.1.2
 ppp ip6cp open
 ppp auth usr
 vrf for v1
 ipv4 addr dynamic dynamic
 ipv6 addr dynamic dynamic
 exit
r1 tping 100 15 1.1.1.2 vrf v1
r2 tping 100 15 1.1.1.1 vrf v1
r1 tping 100 15 2.2.2.2 vrf v1
r2 tping 100 15 2.2.2.1 vrf v1
r1 tping 100 15 4321::2 vrf v1 sou lo1
r2 tping 100 15 4321::1 vrf v1 sou lo1
  1. Install ContainerLab as described here
  2. Fetch conn-ppp08 file
  3. Launch ContainerLab conn-ppp08.yml topology:

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

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

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

   Ctrl-C (In freeRtr test window)