R1与R5间使用ppp的pap认证,R5为主认证方; [lsq]aaa
[lsq-aaa]local
[lsq-aaa]local-user huawei passw
[lsq-aaa]local-user huawei password cipher huawei123
[lsq-aaa]local-user huawei service-type ppp
[lsq-aaa]q
[lsq]interface s3/0/0
[lsq-Serial3/0/0]ppp
[lsq-Serial3/0/0]link-protocol ppp
[lsq-Serial3/0/0]pp authentication-mode pap
换成r1
[Huawei]sysname r1
[r1]int s4/0/0
[r1-Serial4/0/0]lin
[r1-Serial4/0/0]link-protocol ppp
[r1-Serial4/0/0]ppp pap lo
[r1-Serial4/0/0]ppp pap local-user huawei password ci
[r1-Serial4/0/0]ppp pap local-user huawei password cipher huawei123
R2与R5间使用ppp的chap认证,R5为主认证方
[lsq-aaa]local-user cisco password cipher cisco123
[lsq-aaa]local-user cisco service-type ppp
[lsq-aaa]int
[lsq-aaa]inter s3/0/1
[lsq-Serial3/0/1]link
[lsq-Serial3/0/1]link-protocol ppp
[lsq-Serial3/0/1]ppp au
[lsq-Serial3/0/1]ppp authentication-mode chap
[r2]interface s4/0/0
[r2-Serial4/0/0]link
[r2-Serial4/0/0]link-protocol ppp
[r2-Serial4/0/0]ppp chap user cisco
[r2-Serial4/0/0]ppp chap password
[r2-Serial4/0/0]ppp chap password c
[r2-Serial4/0/0]ppp chap password cipher cisco123
R3与R5间使用HDLC封装
[lsq]interface s4/0/0
[lsq-Serial4/0/0]link
[lsq-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
07-30