PPP的两种配置方法(pap和chap)
PAP的配置
R1上的配置
[R1]int s4/0/0
[R1-Serial4/0/0]ppp authentication-mode pap
[R1-Serial4/0/0]q
[R1]aaa
[R1-aaa]local-user huawei password cipher 123456
Info: Add a new user.
[R1-aaa]local-user huawei service-type ppp
R2上的配置
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp pap lo
[R2-Serial4/0/0]ppp pap local-user huawei pas
[R2-Serial4/0/0]ppp pap local-user huawei password ci
[R2-Serial4/0/0]ppp pap local-user huawei password cipher 123456
CHAP的配置
R1上的配置
[R1]int s4/0/0
[R1-Serial4/0/0]ppp authentication-mode chap
[R1-Serial4/0/0]q
[R1]aaa
[R1-aaa]local-user huawei password cipher 123456
Info: Add a new user.
[R1-aaa]local-user huawei service-type ppp
[R1-aaa]q
[R1]int s4/0/0
R2上的配置
[R2]int s4/0/0
[R2-Serial4/0/0]ppp chap password cipher 123456