华为ensp:ppp+CHAP认证

华为ensp:ppp+CHAP认证_第1张图片


如果一头开启了认证,如果对面没有输入认证则双方无法通信


开启ppp

r1和r2在系统视图模式进行同样的操作 

interface Serial 1/0/0
link-protocol ppp
quit

开启ppp


R1

去r1设置chap认证用户和密钥  进入系统视图

interface Serial 1/0/0
ppp authentication-mode chap
quit
aaa
local-user shanghai password cipher shanghai123

设置的用户名为:shanghai  密码为shanghai123

local-user shanghai service-type PPP
quit
interface Serial 1/0/0
shutdown
undo shutdown

现在就设置好了,现在即使是直连的设备没有进行chap也无法通信


R2

去r2进行认证

interface Serial 1/0/0
ppp chap user shanghai
ppp chap password cipher shanghai123
shutdown
undo shutdown

现在认证完就可以正常通信了,如果想要更加安全可以相互做chap

你可能感兴趣的:(网络)