1.实验拓扑
2.实验要求
1、R1和R2使用PPP链路直连,R2和R3把2条PPP链路捆绑为PPP MP直连
2、按照图示配置IP地址
3、R2对R1的PPP进行单向chap验证
4、R2和R3的PpP进行双向chap验证
3.实验思路
1.将R1与R2连接的端点配置IP地址,R2与R3之间的链路改为PPP MP连接
2.把R2作为主验证访,R1为被验证
3.先将R2为主验证访,R3为被验证,后面R3为主验证访,R2为被验证
4.实验步骤
1.配置IP地址
[R1]interface Serial 4/0/0
[R1-Serial4/0/0]ip add 192.168.1.1 24
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ip add 192.168.1.2 24
[R2]interface Mp-group 0/0/1
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/1
[R2]int Serial 3/0/0
[R2-Serial3/0/0]ppp mp Mp-group 0/0/1
[R3]interface Mp-group 0/0/1
[R3]int Serial 4/0/1
[R3-Serial4/0/1]ppp mp Mp-group 0/0/1
[R3]int Serial 4/0/0
[R3-Serial4/0/0]ppp mp Mp-group 0/0/1
[R2]int Mp-group 0/0/1
[R2-Mp-group0/0/1]ip add 192.168.2.3 24
[R3]int Mp-group 0/0/1
[R3-Mp-group0/0/1]ip add 192.168.2.2 24
2.R2对R1的PPP进行单向chap验证
[R2]aaa
[R2-aaa]local-user wangdaye password cipher wdy12345
[R2-aaa]local-user wangdaye service-type ppp
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R1]int Serial 4/0/0
[R1-Serial4/0/0]ppp chap user wangdaye
[R1-Serial4/0/0]ppp chap password cipher wdy12345
[R1-Serial4/0/0]shutdown
[R1-Serial4/0/0]undo shutdown
3.R2和R3的PPP进行双向chap验证
1)R2做主
[R2]aaa
[R2-aaa]local-user zhangdaye password cipher zdy12345
[R2-aaa]local-user zhangdaye service-type ppp
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2-Serial3/0/1]int s3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
[R3]int Serial 4/0/1
[R3-Serial4/0/1]ppp chap user zhangdaye
[R3-Serial4/0/1]ppp chap password cipher zdy12345
[R3]int s4/0/0
[R3-Serial4/0/0]ppp chap user zhangdaye
[R3-Serial4/0/0]ppp chap password cipher zdy12345
2)R3做主
[R3]aaa
[R3-aaa]local-user qindaye password cipher qdy123456
[R3-aaa]local-user qindaye service-type ppp
[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 s3/0/1
[R2-Serial3/0/1]ppp chap user qindaye
[R2-Serial3/0/1]ppp chap password cipher qdy123456
[R2]int s3/0/0
[R2-Serial3/0/0]ppp chap user qindaye
[R2-Serial3/0/0]ppp chap password cipher qdy123456
[R2-Serial3/0/0]quit
[R2-Serial3/0/1]shutdown
[R2-Serial3/0/1]undo shutdown
[R2-Serial3/0/0]shutdown
[R2-Serial3/0/0]undo shutdown
[R2-Serial4/0/0]shutdown
[R2-Serial4/0/0]undo shutdown