Example: ppp relay over pppoe¶
r1
hostname r1
vrf def v1
rd 1:1
exit
int di1
enc ppp
vrf for v1
ipv4 addr 1.1.1.1 255.255.255.252
exit
int eth1
p2poe client di1
exit
r2
hostname r2
int eth1
p2poe relay ser1
exit
int ser1
enc raw
exit
r3
hostname r3
vrf def v1
rd 1:1
exit
int ser1
enc ppp
vrf for v1
ipv4 addr 1.1.1.2 255.255.255.252
exit
int di1
enc ppp
vrf for v1
ipv4 addr 1.1.1.5 255.255.255.252
exit
int eth1
p2poe relay di1
exit
r4
hostname r4
vrf def v1
rd 1:1
exit
int di1
enc ppp
vrf for v1
ipv4 addr 1.1.1.6 255.255.255.252
exit
int eth1
p2poe client di1
exit
r1 tping 100 30 1.1.1.2 vrf v1
r3 tping 100 30 1.1.1.1 vrf v1
r3 tping 100 30 1.1.1.6 vrf v1
r4 tping 100 30 1.1.1.5 vrf v1
- Install ContainerLab as described here
- Fetch conn-pppoe03 file
- Launch ContainerLab
conn-pppoe03.yml
topology:
containerlab deploy --topo conn-pppoe03.yml
conn-pppoe03.yml
topology:
containerlab destroy --topo conn-pppoe03.yml