Skip to content

Example: ppp over tls

Alt text

r1

hostname r1
vrf def v1
 rd 1:1
 exit
int lo0
 vrf for v1
 ipv4 addr 1.1.1.1 255.255.255.255
 exit
ipv4 pool p4 2.2.2.1 0.0.0.1 254
int di1
 enc ppp
 vrf for v1
 ipv4 addr 2.2.2.0 255.255.255.255
 ppp ip4cp local 2.2.2.0
 ipv4 pool p4
 ppp ip4cp open
 exit
int eth1
 vrf for v1
 ipv4 addr 3.3.3.1 255.255.255.252
 exit
aaa userlist usr
 username c password c
 username c privilege 14
 exit
crypto rsakey rsa generate 2048
crypto dsakey dsa generate 1024
crypto ecdsakey ecdsa generate 256
crypto certificate dsa generate dsa dsa
crypto certificate rsa generate rsa rsa
crypto certificate ecdsa generate ecdsa ecdsa
server tel tel
 vrf v1
 security rsakey rsa
 security dsakey dsa
 security ecdsakey ecdsa
 security rsacert rsa
 security dsacert dsa
 security ecdsacert ecdsa
 security protocol tls
 login authen usr
 exec int di1
 exit

r2

hostname r2
vrf def v1
 rd 1:1
 exit
proxy-profile p1
 vrf v1
 exit
prefix-list p1
 permit 0.0.0.0/0
 exit
int di1
 enc ppp
 vrf for v1
 ipv4 addr 4.4.4.4 255.255.255.128
 ppp ip4cp open
 ppp ip4cp local 0.0.0.0
 ipv4 gateway-prefix p1
 exit
int eth1
 vrf for v1
 ipv4 addr 3.3.3.2 255.255.255.252
 exit
chat-script login
 recv 5000 .*ser
 send c
 binsend 13
 recv 5000 .*ass
 send c
 binsend 13
 send ppp
 binsend 13
 exit
vpdn tel
 interface di1
 proxy p1
 script login
 target 3.3.3.1
 vcid 23
 protocol tls
 exit
r2 tping 100 40 2.2.2.0 vrf v1
r2 tping 100 5 1.1.1.1 vrf v1
r2 output show inter dia1 full
output ../binTmp/conn-tls.html
<html><body bgcolor="#000000" text="#FFFFFF" link="#00FFFF" vlink="#00FFFF" alink="#00FFFF">
here is the interface:
  1. Install ContainerLab as described here
  2. Fetch conn-tls file
  3. Launch ContainerLab conn-tls.yml topology:

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

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

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

   Ctrl-C (In freeRtr test window)