试验36 PPP CHAP 认证



R1配置

r1(config)#int s1/2
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#exit
r1(config)#username admin password linux
r1(config)#int s1/2
r1(config-if)#ppp authentication chap
Must set encapsulation to PPP before using PPP subcommands
r1(config-if)#encapsulation ppp
r1(config-if)#^Z

R2配置

Router(config)#int s2/1
Router(config-if)#ip ad 10.1.1.2 255.255.255.0
Router(config-if)#no sh
Router(config)#username admin password linux
Router(config)#int s2/1
Router(config-if)#ppp authentication chap
Must set encapsulation to PPP before using PPP subcommand
r2(config-if)#encapsulation ppp

验证一下试验

r1#debug ppp authentication
r1(config)#int s1/2
r1(config-if)#sh
r1(config-if)#no sh
00:10:10: %SYS-5-CONFIG_I: Configured from console by console
r1#
00:10:12: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up
r1#
00:10:12: Se1/2 PPP: Treating connection as a dedicated line

认证通过

你可能感兴趣的:(职场,认证,休闲,ppp,CHAP)