jskfan
asked on
PPP PAP and CHAP example
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.
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)#usern ame client1 password cisco
RouterServer(config)#usern ame client2 password cisco2
RouterServer(config)#usern ame client3 password cisco3
etc....
but what about the scenario when 2 servers authenticate each other? can someone post an example ?
Thanks
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 1.1.1.1 255.255.255.0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication pap
R1(config-if)#exit
R1(config)#username R2 password cisco
R2(config)#int s1/0
R2(config-if)ip address 1.1.1.2 255.255.255.0
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 1.1.1.1 255.255.255.0
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 1.1.1.2 255.255.255.0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap
=================================
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)#usern
RouterServer(config)#usern
RouterServer(config)#usern
etc....
but what about the scenario when 2 servers authenticate each other? can someone post an example ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER