华为实验手册1(16)
发布时间:2021-06-08
发布时间:2021-06-08
round-trip min/avg/max = 28/28/28 ms
1.7 配置参考
1.7.1 配置接口地址
[Quidway1-S3/0/0] ip address 192.168.0.1 255.255.255.252 [Quidway2-S3/0/0] ip address 192.168.0.2 255.255.255.252
1.7.2 封装PPP
[Quidway1-S3/0/0] link-protocol ppp [Quidway2-S3/0/0] link-protocol ppp
1.7.3 启用验证
PAP:
[Quidway1-S3/0/0] ppp authentication-mode pap [Quidway1] local-user huawei
[Quidway1- local-user huawei]password cipher 123456 [Quidway1- local-user huawei]service-type ppp [Quidway1-S3/0/0] shutdown
[Quidway1-S3/0/0] undo shutdown
[Quidway2-S3/0/0] ppp pap local-user huawei password cipher 123456 [Quidway2-S3/0/0] shutdown
[Quidway2-S3/0/0] undo shutdown
CHAP:
[Quidway1-S3/0/0] ppp authentication-mode chap [Quidway1] local-user huawei1
[Quidway1- local-user huawei]password cipher 123456 [Quidway1- local-user huawei]service-type ppp [Quidway1-S3/0/0] ppp chap user huawei2 [Quidway1-S3/0/0] shutdown
[Quidway1-S3/0/0] undo shutdown
[Quidway2] local-user huawei2
[Quidway2- local-user huawei]password cipher 123456 [Quidway2- local-user huawei]service-type ppp [Quidway2-S3/0/0] ppp chap user huawei1 [Quidway2-S3/0/0] shutdown
[Quidway2-S3/0/0] undo shutdown
注意:在CHAP验证中,主验证方和被验证方的password必须保持一致!