- 实验拓扑
- 实验需求
1、R1和R2使用PPP链路直连,R2和R3把2条PPP链路捆绑为PPP MP直连
2、按照图示配置IP地址
3、R2对R1的PPP进行单向chap验证
4、R2和R3的PPP进行双向chap验证
- 实验思路
1、将R2,R3ppp链路捆绑为ppp mp并配置IP
[R1]in s4/0/0
[R1-Serial4/0/0]ip add 192.168.1.1 24
[R2]in s4/0/0
[R2-Serial4/0/0]ip add 192.168.1.2 24
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.2 24
[R2]int s4/0/1
[R2-Serial4/0/1]ppp mp Mp-group 0/0/0
[R2-Serial4/0/1]int s3/0/0
[R2-Serial3/0/0]ppp mp Mp-group 0/0/0
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24
[R3]int s4/0/1
[R3-Serial4/0/1]ppp mp Mp-group 0/0/0
[R3-Serial4/0/1]int s4/0/0
[R3-Serial4/0/0]ppp mp Mp-group 0/0/0
2、R1与R2的单向验证(R2为主验证方)
[R2]aaa
[R2-aaa]local-user jyt password cipher jyt123456
Info: Add a new user.
[R2-aaa]local-user jyt service-type ppp
[R2-aaa]q
[R2]int s4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R1]int s4/0/0
[R1-Serial4/0/0]ppp chap user jyt
[R1-Serial4/0/0]ppp chap password cipher jyt123456
[R1-Serial4/0/0]shutdown
[R1-Serial4/0/0]undo shutdown
- R3与R2的双向验证
R2为主:
[R2]aaa
[R2-aaa]local-user sh password cipher sh123456
Info: Add a new user.
[R2-aaa]local-user sh service-type ppp
[R2-aaa]int s4/0/1
[R2-Serial4/0/1]ppp authentication-mode chap
[R2-Serial4/0/1]int s3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
[R3]int s4/0/1
[R3-Serial4/0/1]ppp chap user sh
[R3-Serial4/0/1]ppp chap password cipher sh123456
[R3-Serial4/0/1]int s4/0/0
[R3-Serial4/0/0]ppp chap user sh
[R3-Serial4/0/0]ppp chap password cipher sh123456
R3为主:
[R3]aaa
[R3-aaa]local-user jyt password cipher jyt123456
Info: Add a new user.
[R3-aaa]local-user jyt service-type ppp
[R3-aaa]q
[R3]int s4/0/1
[R3-Serial4/0/1]ppp authentication-mode chap
[R3-Serial4/0/1]int s4/0/0
[R3-Serial4/0/0]ppp authentication-mode chap
[R2]int s4/0/1
[R2-Serial4/0/1]ppp chap user jyt
[R2-Serial4/0/1]ppp chap password cipher jyt123456
[R2-Serial4/0/1]int s3/0/0
[R2-Serial3/0/0]ppp chap user jyt
[R2-Serial3/0/0]ppp chap password cipher jyt123456
[R2-Serial3/0/0]q
[R2-Serial4/0/1]shutdown
[R2-Serial3/0/0]shutdown
[R2-Serial4/0/1]undo shutdown
[R2-Serial3/0/0]undo shutdown