Example: ppp over gtp¶
r1
hostname r1
vrf def v1
rd 1:1
exit
int eth1
vrf for v1
ipv4 addr 1.1.1.1 255.255.255.0
ipv6 addr 1234::1 ffff::
exit
int lo0
vrf for v1
ipv4 addr 4.4.4.4 255.255.255.255
ipv6 addr 4444::4 ffff::
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
ipv6 addr 4321::1 ffff::
ppp ip4cp local 2.2.2.0
ipv4 pool p4
ppp ip4cp open
exit
server gtp gtp
clone di1
vrf v1
exit
r2
hostname r2
vrf def v1
rd 1:1
exit
proxy-profile p1
vrf v1
exit
int eth1
vrf for v1
ipv4 addr 1.1.1.2 255.255.255.0
ipv6 addr 1234::2 ffff::
exit
prefix-list p1
permit 0.0.0.0/0
exit
int di1
enc ppp
vrf for v1
ipv4 addr 3.3.3.3 255.255.255.128
ipv6 addr 4321::2 ffff::
ppp ip4cp open
ppp ip4cp local 0.0.0.0
ipv4 gateway-prefix p1
exit
vpdn gtp
int di1
proxy p1
tar 1.1.1.1
called inet
calling 4321
dir in
prot gtp
exit
r2 tping 100 60 2.2.2.0 vrf v1
r2 tping 100 5 4.4.4.4 vrf v1
r2 tping 100 5 4321::1 vrf v1
r2 output show inter dia1 full
output ../binTmp/conn-gtp.html
<html><body bgcolor="#000000" text="#FFFFFF" link="#00FFFF" vlink="#00FFFF" alink="#00FFFF">
here is the interface:
- Install ContainerLab as described here
- Fetch conn-gtp01 file
- Launch ContainerLab
conn-gtp01.yml
topology:
containerlab deploy --topo conn-gtp01.yml
conn-gtp01.yml
topology:
containerlab destroy --topo conn-gtp01.yml