PPP认证方法 PPP链路可以使用两种认证方法: 口令认证协议(PAP) 口令认证协议是两种方法中安全程度较低的一种。口令以明文发送,并且PAP值在初始链路建立时执行。 问答握手认证协议(CHAP) 问答握手认证协议用于链路初始启动,和为了证实路由器连接的仍然是同一个主机而进行周期性链路检查。 在Cisco路由器上配置PPP Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int s0 Router(config-if)#encapsulation ppp Router(config-if)#^Z Router#
配置PPP认证 将串行接口配置为支持PPP封装后,可以使用PPP在路由器之间配置认证。 Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname RouterA RouterA(config)#username RouterB password 12345 当使用hostname命令时,要记住用户名师连接你路由器的远程路由器的主机名。 当设置了主机名、用户名和口令后,选择认证类型、CHAP和PAP: RouterA#config t Enter configuration commands, one per line. End with CNTL/Z. RouterA(config)#int s0 RouterA(config-if)#ppp authentication chap pap RouterA(config-if)#^Z RouterA#