Skip to content

Example: interop2: pppoe with chap

Alt text

r1

hostname r1
vrf def v1
 rd 1:1
 exit
int di1
 enc ppp
 vrf for v1
 ipv4 addr 3.3.3.1 255.255.255.0
 ipv6 addr fe80::1234 ffff::
 ppp ip4cp local 0.0.0.0
 ppp ip4cp open
 ppp ip6cp open
 ppp user usr
 ppp pass pwd
 exit
int eth1
 vrf for v1
 ipv4 address 2.2.2.2 255.255.255.0
 exit
int eth1.123
 p2poe client di1
 exit
aaa userlist aaa
 username usr password pwd
 exit
server radius v1
 authentication aaa
 secret tester
 vrf v1
 exit

r2

hostname r2
aaa authorization subscriber default group radius
aaa authentication subscriber default group radius
radius-server host 2.2.2.2 auth-port 1812 acct-port 1813 key tester
pool vrf default ipv4 p1
 address-range 1.1.1.201 1.1.1.255
 type ppp dt1
  ppp authentication chap
  ppp ipcp peer-address pool p1
  ipv4 unnumbered Loopback0
  ipv6 enable
pppoe bba-group bg1
 ac name inet
 service selection disable
class-map type control subscriber match-any cm1
 match protocol ppp
 end-class-map
policy-map type control subscriber pm1
 event session-start match-first
  class type control subscriber cm1 do-until-failure
   10 activate dynamic-template dt1
 event session-activate match-first
  class type control subscriber cm1 do-until-failure
   10 authenticate aaa list default
 end-policy-map
interface Loopback0
 ipv4 address 1.1.1.111 255.255.255.255
 ipv6 address 4321::2/128
 exit
interface gigabit0/0/0/0
 ipv4 address 2.2.2.1 255.255.255.0
 no shutdown
 exit
interface gigabit0/0/0/0.123
 encapsulation dot1q 123
 service-policy type control subscriber pm1
 pppoe enable bba-group bg1
 exit
r1 tping 100 60 2.2.2.1 vrf v1
r1 tping 100 60 1.1.1.111 vrf v1
  1. Install ContainerLab as described here
  2. Fetch intop2-pppoe02 file
  3. Launch ContainerLab intop2-pppoe02.yml topology:

   containerlab deploy --topo intop2-pppoe02.yml  
4. Destroy ContainerLab intop2-pppoe02.yml topology:

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

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

   Ctrl-C (In freeRtr test window)