PPP and CHAP configuration, PPPoE
Sign in to read this lesson
On a serial interface the encapsulation ppp command replaces HDLC with PPP. The debug ppp negotiation output first shows LCP messages (CONFREQ, CONFACK, State is Open), then NCP messages (IPCP, CDPCP). For CHAP each router gets a username with the other router's hostname and the same password, and ppp authentication chap goes on the interface. debug ppp authentication shows the challenge, response and success messages. With PPPoE, PPP runs over Ethernet through the DSL modem: a dialer interface holds the PPP settings and the physical interface joins it with pppoe-client dial-pool-number.
What you will learn
encapsulation ppp: PPP instead of HDLC on a serial interface. Both ends of the link must use the same encapsulation.debug ppp negotiation: first LCP (CONFREQ/CONFACK → State is Open), then NCP (IPCP, CDPCP).O= sent,I= received.- CHAP:
username <other router's hostname> password <same password>andppp authentication chapon the interface. If configured on both sides, the routers authenticate each other. debug ppp authentication:O CHALLENGE→I RESPONSE→O SUCCESS, and the same sequence in the other direction.- PPPoE:
interface Dialer1(encapsulation ppp, ip address negotiated, mtu 1492, dialer pool 1, ppp chap ...) +pppoe-client dial-pool-number 1on the physical interface.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.