ppp的chap认证_chap
chap认证
R1的配置
R1> en
R1# conf  t
R1(config)#username  benet(对方的名字  password  0  123
R1(config)# int  s0/1
R1(config-if)# ip   add  192.168.2.1  255.255.255.0
R1(config-if)# no  shut
R1(config-if)# encapsulation  ppp
R1(config-if)# ppp  authentication  chap
R1(config-if)# ppp  chap  hostname  accp(自己的名字)
R1(config-if)#end
R1#
 
R2的配置
R2> en
R2# conf  t
R2(config)#username  accp(对方的名字)  password  0  123
R2(config)# int  s0/1
R2(config-if)# ip  add 192.168.2.2  255.255.255.0
R2(config-if)# no  shut
R2(config-if)# encapsulation  ppp
R2(config-if)# ppp  chap  hostname  benet(自己的名字)
R2(config-if)#end
R2#