路由器Router1和Router2的S0口均封装PPP协议,采用CHAP做认证,在Router1中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router2。同时在Router2中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router1。所建的这两用户的passWord必须相同。

设置如下:
Router1:
hostnamerouter1
usernamerouter2passwordxxx
interfaceSerial0
ipaddress192.200.10.1255.255.255.0
clockrate1000000
pppauthenticationchap
Router2:
hostnamerouter2
usernamerouter1passwordxxx
interfaceSerial0
ipaddress192.200.10.2255.255.255.0
pppauthenticationchap