网络实验-PPP的pap验证和chap验证
程序员文章站
2024-02-14 13:04:28
...
网络实验-PPP的pap验证和chap验证
封装ppp
[Quidway-Serial0] link-protocol ppp
路由器接口缺省封装的链路层协议即为PPP,故在路由器启动后,它的同异步串口的链路层协议将自动是PPP,并不需要键入上述命令来进行显式配置
PPP配置 — PAP验证(V5)
验证方:
[Quidway-Serial0] ppp authentication-mode pap
[Quidway] local-user username
[Quidway-luser] service-type ppp
[Quidway-luser] password simple password
被验证方:
[Quidway-Serial0] ppp pap local-user username password simple password
PPP配置 — PAP验证(V7)
验证方:
[Quidway-Serial0] ppp authentication-mode pap
[Quidway] local-user user class network
[Quidway-luser] service-type ppp
[Quidway-luser] password simple password
被验证方:
[Quidway-Serial0] ppp pap local-user username password simple password
PPP配置 — CHAP验证(V5)
验证方:
[RA-Serial0] ppp authentication-mode chap
[RA-Serial0] ppp chap user user-a
[RA] local-user user-b
[RA-userb] service-type ppp
[RA-userb] password simple password
被验证方:
[RB-Serial0] ppp chap user user-b
[RB] local-user user-a
[RB-usera] service-type ppp
[RB-usera] password simple password
PPP配置 — CHAP验证(V7)
验证方:
[RA-Serial0] ppp authentication-mode chap
[RA-Serial0] ppp chap user user -a
[Quidway] local-user user-b class network
[Quidway-luser] service-type ppp
[Quidway-luser] password simple password
被验证方:
[RB-Serial0] ppp chap user user -b
[Quidway] local-user user –a class network
[Quidway-luser] service-type ppp
[Quidway-luser] password simple password