PPPoE

Overview

ACTIVE DISCOVERY (PPPoE)

  • PADI (PPPoE Active Discovery Initialization). Broadcast from client to AC "Are there any PPPoE Servers out there? My unique Host-ID is xx-xx"
  • PADO (PPPoE Active Discovery Offer). Unicast from AC to client. "Yes, I’m here xx-xx. My unique AC ID is yy.yy"
  • PADR (PPPoE Active Discovery Request). Unicast from client to AC. "Thanks for the info! Can I have a Session-ID please?"
  • PADS (PPPoE Active Discovery Session-Confirmation). Unicast from AC to client. "Yes, let’s use Session-ID 0x02".

pppoe-active-discovery

PPP LCP

Magic number option = loop prevention

Authentication option

Multilink option

Callback option (must be set on both sides)

  • Configuration-Request - Lists all link specific options a sender wishes to implement
  • Configuration-Reject - When a receiver does not support a particular feature and offers no alternatives
  • Configuration-NAK (Negative Acknowledgement) - Receiver does not support a particular feature and offers an alternative
  • Configuration-Acknowledgement - Acknowledging all LCP options in the most recent received Config-Req

PPP NCP

Negotiate what Layer 3 Protocol to use:

  • IP : IPCP
  • IPX : IPXCP
  • CDP : CDPCP

ppp-lcp-ncp

Config

Notes: the PPP hostname is the username for auth in IOS ppp chap hostname BLAH to override the hostname, otherwise defaults to router hostname.

Client Config:

!
hostname PPPoE_Client
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
 media-type rj45
 pppoe enable
 pppoe-client dial-pool-number 1
!
interface Dialer1
 mtu 1492
 ip address negotiated
 encapsulation ppp
 dialer pool 1
 ppp chap password 0 cisco
!
ip route 0.0.0.0 0.0.0.0 Dialer1
!

BRAS Config:

!
hostname PPPoE_Server
!
username PPPoE_Client password 0 cisco
!
bba-group pppoe PPPoE_Clients
 virtual-template 1
 sessions per-mac limit 2
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet0/0
 description "To PPPoE Clients"
 no ip address
 duplex auto
 speed auto
 media-type rj45
 pppoe enable group PPPoE_Clients
!
interface Virtual-Template1
 ip address 100.64.0.1 255.255.255.0
 peer default ip address pool PPPoE_Pool
 ppp authentication chap callin
!

Verification:

show pppoe sessions

show users

debug ppp authentication

Packet headers

IP MTU is generally set to 1492 (6 byte PPPoE header, 2 byte PPP header) vs standard 1500 byte IP MTU

Ethertype is 0x8864

Verify with ICMP echo DF bit set, size 1464

pppoe-headers