Configure PAP authentication for PPP authentication configuration and troubleshooting
1. Configure PAP Authentication-Primary authenticated Party:
1. Configure the authentication username and password
Router (config) # username user_name password 0 pass_word
2. Enable PAP Authentication
Router (config-if) # ppp authentication pap
2. Configure PAP Authentication-authenticated Party B:
1. Configure the authentication username and password
Router (config-if) # ppp pap sent-username user_name password 0 pass_word
Configure CHAP authentication for PPP authentication configuration and troubleshooting-Primary authenticated Party:
Configure the authentication username and password
Router (config) # username user_name password 0 pass_word
Enable CHAP authentication
Router (config-if) # ppp authentication chap
Configure the authentication user name
Router (config-if) # ppp chap hostname user_name
Configure CHAP authentication-authenticated Party B:
Configure the authentication username and password
Router (config) # username user_name password 0 pass_word
Configure the authentication user name
Router (config-if) # ppp chap hostname user_name
Configure the authentication Password
Router (config-if) # ppp chap password 0 pass_word
Configure IP address negotiation for PPP authentication configuration and troubleshooting
Server
Router (config-if) # peer default ip address ip_addr
Client
Router (config-if) # ip address negotiated
Suggestion: After the configuration is complete, remember to execute SHUTDOWN and no shutdown under one of the ports.