Figure 4-2 Networking diagram of PAP and CHAP

authentication example

ROUTER A

ROUTER B

encapsulation ppp – encapsulation style to ppp style (interface command)

pppauthentication [pap chap - enable the PAP or CHAP authentication

username username password password [callback-dialstring]– add the username and password of the peer into the local user. Callback-dialstring is for callback command in global command

pppcompress [predictor stacker] – configure predictor or stacker compress on the interface

ip tcp header-compress– configure tcp header compress on the interface.

pppcallback [accept initiate] – configure callback on interface accept is configured in server and initiate is configured in client

Configuration Example

CHAP example

router# show run

Building configuration ...

service password-encryption

service timestamps debug

!

24