PPP (Point-to-Point Protocol) is the successor of SLIP (Serial Line IP protocol). It provides a router-to-router over synchronous and asynchronous circuits) and host-to-network.
CHAP (Challenge Handshake Authentication Protocol) and PAP (Password Authentication Protocol) are generally used to provide security Authentication on PPP encapsulated serial lines. With CHAP and PAP authentication, each vro is identified by its name to prevent unauthorized access.
CHAP and PAP are detailed in RFC 1334.
1. Related commands
Port Settings
Note: 1. To use CHAP/PAP, PPP encapsulation is required. When connecting to a non-Cisco router, PPP encapsulation is generally used. vrouters of other manufacturers generally do not support the Cisco HDLC encapsulation protocol.
2. Example
The S0 ports of router Router1 and Router2 both encapsulate the PPP protocol and adopt CHAP for authentication. In Router1, a user should be created and the peer vro host name should be used as the user name, that is, the user name should be router2. At the same time, a user should be created in Router2, with the peer router host name as the user name, that is, the user name should be router1. The password of the user must be the same.
The settings are as follows:
Router1:
Hostname router1
Username router2 password xxx
Interface Serial0
Ip address 192.200.10.1 255.255.255.0
Clockrate 1000000
Ppp authentication chap
!
Router2:
Hostname router2
Username router1 password xxx
Interface Serial0
Ip address 192.200.10.2 255.255.255.0
Ppp authentication chap