PPP是SLIP的继承者,它提供了跨过同步和异步电路实现路由器到路由器和主机到网络的链接。CHAP和PAP通常被用于在PPP封装的串行线路上提供安全性认证。使用CHAP和PAP认证,每个路由器通过名字来识别,可以防止未经授权的访问。解释配置中后面数字对应行的内容含义。
路由器Router1和Router2的S0口均封装PPP协议,采用CHAP做认证,如下图所示。
设置如下:
Router1:hostname router1 (46)
Username router1 password xxx (47)
Interface serial0
Ip address 192.200.10.1 255.255.255.0
Encapsulation ppp (48)
Clockrate 1000000 (49)
Ppp authentication chap (50)
!
Router2:
hostname router2
Username router password xxx
Interface serial0
Ip address 192.200.10.2 255.255.255.0
Encapsulation ppp
Ppp authentication chap
49()