Topology:
R1 S1/1 IP: 1.1.1.1/24
R2 S1/0 IP: 1.1.1.2/24
R1 Configuration:
R1 (config) # int S1/1
R1 (config-If) # IP add 1.1.1.1 255.255.255.0
R1 (config-If) # encapsulation PPP
R1 (config-If) # PPP authentication chap
R1 (config-If) # No sh
R1 (config-If) # exit
R1 (config) # username R2 password Cisco
R2 Configuration:
R2 (config) # int S1/0
R2 (config-If) # IP add 1.1.1.2 255.255.255.0
R2 (config-If) # encapsulation PPP
R2 (config-If) # PPP authentication chap
R2 (config-If) # No sh
R2 (config-If) # exit
R1 (config) # username R1 password Cisco
Note: The username is the hostname of the other party, and the password must be consistent. If the same username is used, additional commands will be attached (so that I forgot)
PPP supports two authentication protocols: the password verification protocol (PAP) and the question grip hand verification protocol (CHAP ). PPP negotiation includes Link Control Protocol (LCP) Negotiation, authentication, and Network Control Protocol (NCP) negotiation.