We help IT Professionals succeed at work.
Get Started

PPP PAP and CHAP example

jskfan asked
Last Modified: 2014-12-13
in the configuration below, I have configured PAP and CHAP and it worked in both cases, however I used one router as Server and one as Client.
PPP Configuration
PPP with PAP authentication:
in this configuration R1 is PAP Server and R2 is PAP client

R1(config)#int s1/0
 R1(config-if)ip address
 R1(config-if)#encapsulation ppp 
 R1(config-if)#ppp authentication pap
 R1(config)#username R2 password cisco

R2(config)#int s1/0
R2(config-if)ip address
R2(config-if)#encapsulation ppp 
R2(config-if)#ppp pap sent-username R2 password cisco


PPP with CHAP authentication:
in this configuration R1 is CHAP Client and R2 is CHAP Server

R1#configure terminal
R1(config)#interface serial 1/0
R1(config-if)ip address
R1(config-if)#encapsulation ppp 
R1(config-if)#ppp chap hostname R1
R1(config-if)#ppp chap password cisco

R2#configure terminal
R2(config)#username R1 password cisco
R2(config)#interface serial 1/0
R2(config-if)ip address
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap


Open in new window

 I believe in real world there could be scenarios where there is one server authenticating multiple clients or multiple servers authenticating each others.

I guess in the scenario where one server is authenticating multiple clients , we might just need to add the following line on the server for as many clients as we have,  correct me if I am wrong:

RouterServer(config)#username client1 password cisco
RouterServer(config)#username client2 password cisco2
RouterServer(config)#username client3 password cisco3
but what about the scenario when 2 servers authenticate each other? can someone post an example ?

Watch Question
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE