Pppoe
Test to check PPPoE interface.
Test PAP Authentication
Description
Checks PPPoE interface with PAP authentication.
Scenario
Note
Configure PPPoE server with PAP authentication
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX1+BZCinvs7skPPfieA/9kN9yUioECITp20= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
------------------------------------------------------- Name IP Address Admin Oper Vrf Description ------------------------------------------------------- pppoe0 192.168.100.2/32 up up
Test CHAP Authentication
Description
Checks PPPoE interface with CHAP authentication.
Scenario
Note
Configure PPPoE server with CHAP authentication
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol chap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX1/ic++2KRBIcn8Sn+0UHki5gSO8JRQ7E8o= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
------------------------------------------------------- Name IP Address Admin Oper Vrf Description ------------------------------------------------------- pppoe0 192.168.100.2/32 up up
Test Local Address
Description
Checks PPPoE interface with a configured local IPv4 address.
Scenario
Note
Configure PPPoE server
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX19NrCajBR0ZCYjEtYMxHWHAyfXhYjSOm6I= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Modify the following configuration lines in DUT0 :
set interfaces pppoe pppoe0 local-address 192.168.100.100
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
192.168.100.100Show output
--------------------------------------------------------- Name IP Address Admin Oper Vrf Description --------------------------------------------------------- pppoe0 192.168.100.100/32 up up
Step 4: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
--------------------------------------------------------- Name IP Address Admin Oper Vrf Description --------------------------------------------------------- pppoe0 192.168.100.100/32 up up
Note
Connectivity verification is not performed as the interface lacks IPv4 addressing and the IPv6 address is only an identifier
Test Local Identifier
Description
Checks PPPoE interface with a configured local IPv6 identifier.
Scenario
Note
Configure PPPoE server
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX19GqdoV9KNs+c+hE29dvFYLx0dqoqHm21g= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Modify the following configuration lines in DUT0 :
set interfaces pppoe pppoe0 local-identifier '::100'
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
::100Show output
------------------------------------------------------- Name IP Address Admin Oper Vrf Description ------------------------------------------------------- pppoe0 192.168.100.3/32 up up fe80::100/128
Step 4: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
------------------------------------------------------- Name IP Address Admin Oper Vrf Description ------------------------------------------------------- pppoe0 192.168.100.3/32 up up fe80::100/128
Test Ethernet VIF Interface
Description
Checks PPPoE interface with an Ethernet VIF interface as the base interface.
Scenario
Note
Configure PPPoE server with VLAN 100 support
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX19MI9QtxYrmzYCd0RIHTfdbJtVrB4ceka0= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Modify the following configuration lines in DUT0 :
set interfaces ethernet eth0 vif 100 set interfaces pppoe pppoe0 base-interface ethernet eth0 vif 100
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------- Name IP Address Admin Oper Vrf Description -------------------------------------------------------------------- pppoe0 192.168.100.2/32 up up fe80::85c3:c339:f981:e34a/128
Test Bridge Interface
Description
Checks PPPoE interface with a Bridge interface as the base interface.
Scenario
Note
Configure PPPoE server
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX1/666fX6rBUo8lk4Fi8m9Mk+U3KqHKzu/Q= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Modify the following configuration lines in DUT0 :
delete interfaces pppoe pppoe0 base-interface ethernet set interfaces bridge br0 set interfaces ethernet eth1 bridge-group bridge br0 set interfaces pppoe pppoe0 base-interface bridge br0
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------- Name IP Address Admin Oper Vrf Description -------------------------------------------------------------------- pppoe0 192.168.100.3/32 up up fe80::cd19:acd8:a1ee:b4ab/128
Test Bridge VIF Interface
Description
Checks PPPoE interface with a Bridge VIF interface as the base interface.
Scenario
Note
Configure PPPoE server with VLAN 100 support
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX1+jz3iXXG6UCgnCmshfkJHP2dBRsNxg428= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Modify the following configuration lines in DUT0 :
delete interfaces pppoe pppoe0 base-interface ethernet set interfaces bridge br0 vif 100 set interfaces bridge br0 vlan 100 set interfaces ethernet eth1 bridge-group bridge br0 set interfaces ethernet eth1 bridge-group vlan 100 set interfaces pppoe pppoe0 base-interface bridge br0 vif 100
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------- Name IP Address Admin Oper Vrf Description -------------------------------------------------------------------- pppoe0 192.168.100.2/32 up up fe80::e129:c7f1:25bf:1cd7/128
Test Access Concentrator
Description
Checks PPPoE interface with an access concentrator. An access concentrator is a device that aggregates PPPoE sessions from multiple clients.
Scenario
Note
Configure PPPoE server with an access concentrator.
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX1/mvouE98ROVZK7S2J4KehlDmMdo9zq8PI= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Modify the following configuration lines in DUT0 :
set interfaces pppoe pppoe0 access-concentrator myac
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------- Name IP Address Admin Oper Vrf Description -------------------------------------------------------------------- pppoe0 192.168.100.3/32 up up fe80::6d1e:bec2:9b73:e246/128
Test PPPoE With Tunnel Interface
Description
Checks PPPoE interface with GRE tunnel configured over PPPoE. This test verifies that a GRE tunnel can be established using the PPPoE interface as the local interface.
Scenario
Note
Configure PPPoE server with PAP authentication
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX181X69h0GN7KtAMLqDJBgDwFFVNZXbTt9E= set interfaces pppoe pppoe0 base-interface ethernet eth0 set interfaces tunnel tun0 address 10.10.10.200/24 set interfaces tunnel tun0 encapsulation gre set interfaces tunnel tun0 ppp-interface pppoe0 set interfaces tunnel tun0 remote-address 192.168.100.1 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system offload disable
Step 2: Modify the following configuration lines in DUT0 :
set interfaces pppoe pppoe0 local-address 192.168.100.100
Step 3: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------- Name IP Address Admin Oper Vrf Description -------------------------------------------------------------------- pppoe0 192.168.100.100/32 up up fe80::7937:fd77:b7e5:50a2/128
Note
Verify tunnel interface configuration
Step 4: Run command interfaces tunnel tun0 show detailed at DUT0 and check if output contains the following tokens:
10.10.10.200Show output
-------------------------------------------------------------------------------------------------------- Name Idx IP Address Admin Oper Link MTU Vrf Upper Lower Type Phys addr -------------------------------------------------------------------------------------------------------- tun0 159 10.10.10.200/24 up up up 1468 pppoe0 tunnel 192.168.100.100 fe80::5efe:c0a8:6464/64
Step 5: Run command interfaces tunnel tun0 show detailed at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------------------------------------------- Name Idx IP Address Admin Oper Link MTU Vrf Upper Lower Type Phys addr -------------------------------------------------------------------------------------------------------- tun0 159 10.10.10.200/24 up up up 1468 pppoe0 tunnel 192.168.100.100 fe80::5efe:c0a8:6464/64
Test PPPoE With DNS Forwarding
Description
Checks PPPoE interface with DNS forwarding service configured. This test verifies that DNS forwarding can be enabled on the PPPoE interface and properly resolves DNS queries.
Scenario
Note
Configure PPPoE server with PAP authentication and DNS server
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.215.168.64/24 set interfaces pppoe pppoe0 authentication protocol pap set interfaces pppoe pppoe0 authentication user myuser encrypted-password U2FsdGVkX19pi25dcGaJ6fquYTAzz7RTyTX73U1K1gQ= set interfaces pppoe pppoe0 base-interface ethernet eth0 set protocols static route 0.0.0.0/0 next-hop 10.215.168.1 set service dns forwarding ppp interface pppoe0 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Run command interfaces pppoe pppoe0 show at DUT0 and check if output contains the following tokens:
upShow output
-------------------------------------------------------------------- Name IP Address Admin Oper Vrf Description -------------------------------------------------------------------- pppoe0 192.168.100.3/32 up up fe80::2470:d401:acdb:a779/128
Step 3: Ping IP address 8.8.8.8 from DUT0:
admin@DUT0$ ping 8.8.8.8 count 1 size 56 timeout 1Show output
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=111 time=38.8 ms --- 8.8.8.8 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 38.762/38.762/38.762/0.000 ms
Step 4: Run command nslookup www.google.es at DUT0 and check if output matches the following regular expressions:
Server:\s+(\d+\.){3}\d+Show output
Server: 127.0.0.1 Address: 127.0.0.1#53 ** server can't find www.google.es: REFUSED