华为PPP配置

#拓扑结构

华为PPP配置_第1张图片

pap模式
B验证方 A被验证方
Router B
system-view 
[Huawei]aaa
[Huawei-aaa]local-user Victory password cipher huawei
[Huawei-aaa]quit 
[Huawei]int s0/0/0
[Huawei-Serial0/0/0]ppp authentication-mode pap 
[Huawei-Serial0/0/0]ip add 1.1.1.2 24
RouterA
system-view 
[Huawei]int s0/0/0
[Huawei-Serial0/0/0]ppp pap local-user Victory password cipher huawei
[Huawei-Serial0/0/0]quit 
[Huawei]int s0/0/0
[Huawei-Serial0/0/0]ip add 1.1.1.1 24
注意:验证方和被验证方的用户名密码必须一致
chap模式
两个路由器接口和本地都配置用户名和密码
路由器接口和对端的本地用户名和密码保持一致
R1
system-view 
[Huawei]aaa
[Huawei-aaa]local-user wsx password cipher huawei
[Huawei-aaa]quit 
[Huawei]int s0/0/0
[Huawei-Serial0/0/0]ppp authentication-mode chap 
[Huawei-Serial0/0/0]ppp chap  user qaz
[Huawei-Serial0/0/0]ppp chap password cipher huawei
[Huawei-Serial0/0/0]ip add 1.1.1.2 24
R2
system-view 
[Huawei]aaa
[Huawei-aaa]local-user qaz password cipher huawei
[Huawei-aaa]quit 
[Huawei]int s0/0/0
[Huawei-Serial0/0/0]
[Huawei-Serial0/0/0]ppp authentication-mode chap 
[Huawei-Serial0/0/0]ppp chap user wsx pas
[Huawei-Serial0/0/0]ppp chap password cipher huawei
[Huawei-Serial0/0/0]ip add 1.1.1.1 24

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