PAP and CHAP Configuration and Verification
PAP and CHAP are two authentication protocols used by PPP to provide security to the link. Here are the steps to configure and verify PAP and CHAP:
Configuring PAP:
Step 1: Configure the hostname and enable the interface:
Router(config)# hostname Router1
Router(config)# interface serial 0/0/0
Router(config-if)# ip address 10.0.0.1 255.255.255.0
Router(config-if)# encapsulation ppp
Step 2: Configure the username and password:
Router(config)# username R2 password test
Step 3: Configure PAP on the router:
Router(config)# interface serial 0/0/0
Router(config-if)# ppp authentication pap
Verifying PAP:
Use the debug command to verify PAP authentication:
Router# debug ppp authentication
Router# show debug
Router# show ppp authentication
Configuring CHAP:
Step 1: Configure the hostname and enable the interface:
Router(config)# hostname Router1
Router(config)# interface serial 0/0/0
Router(config-if)# ip address 10.0.0.1 255.255.255.0
Router(config-if)# encapsulation ppp
Step 2: Configure the hostname and password on the remote router:
Router(config)# hostname Router2
Router(config)# username R1 password test
Step 3: Configure CHAP on the local router:
Router(config)# interface serial 0/0/0
Router(config-if)# ppp authentication chap
Verifying CHAP:
Use the debug command to verify CHAP authentication:
Router# debug ppp authentication
Router# show debug Router# show ppp authentication
Apply for Router Support Certification Now!!
https://www.vskills.in/certification/certified-router-support-professional