拓扑图
- 实验步骤
- 配置IP地址及创建mp逻辑口
[R1]int ser 3/0/0
[R1-Serial3/0/0]ip add 192.168.1.1 24
[R1-Serial3/0/0]
[R2]int se3/0/0
[R2-Serial3/0/0]ip add 192.168.1.2 24
[R2-Serial3/0/0]int mp
[R2-Serial3/0/0]int mp-g
[R2-Serial3/0/0]int mp-group 0/0/0
[R2-Mp-group0/0/0]
[R3]int mp-group 0/0/0
[R3-Mp-group0/0/0]
2.将路由口加入逻辑口
[R2-Mp-group0/0/0]int se3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
[R2-Serial3/0/1]int se4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
[R3-Mp-group0/0/0]int se3/0/0
[R3-Serial3/0/0]ppp mp mp-group 0/0/0
[R3-Serial3/0/0]int se3/0/1
[R3-Serial3/0/1]ppp mp mp-group 0/0/0
[R3-Serial3/0/1]
3.进入逻辑口配地址
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.2 24
[R2-Mp-group0/0/0]
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24
[R3-Mp-group0/0/0]
4.R2对R1的PPP进行单向chap验证(表明R2是主验证方,R1是被验证方)
在R2上创建用于验证R1的用户,并在接口配置chap验证方式
[R2]aaa
[R2-aaa]local-user wangdaye password cipher 123456
Info: Add a new user.
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]int se3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
[R2-Serial3/0/0]
在R1连接R2的接口上配置用于验证的用户名和密码
[R1-Serial3/0/0]ppp chap user wangdaye
[R1-Serial3/0/0]ppp chap password cipher 123456
[R1-Serial3/0/0]
5.R2和R3的PPP进行双向chap验证
R2做主验证方
[R2]aaa
[R2-aaa]lo wangdaye pass ci 123456
[R2-aaa]lo wangdaye ser ppp
[R2-aaa]int se3/0/1
[R2-Serial3/0/1]ppp au chap
[R2-Serial3/0/1]int se4/0/0
[R2-Serial4/0/0]ppp au chap
[R2-Serial4/0/0]
[R3]int se3/0/0
[R3-Serial3/0/0]ppp chap user wangdaye
[R3-Serial3/0/0]ppp chap pass cip 123456
[R3-Serial3/0/0]int se3/0/1
[R3-Serial3/0/1]ppp chap user wangdaye
[R3-Serial3/0/1]ppp chap pass cip 123456
[R3-Serial3/0/1]
R3做主验证方
[R3]aaa
[R3-aaa]lo wangdaye pass cip 123456
Info: Add a new user.
[R3-aaa]lo wangdaye ser ppp
[R3-aaa]int se3/0/0
[R3-Serial3/0/0]ppp au chap
[R3-Serial3/0/0]int se3/0/1
[R3-Serial3/0/1]ppp au chap
[R3-Serial3/0/1]
[R2]int se3/0/1
[R2-Serial3/0/1]ppp chap user wangdaye
[R2-Serial3/0/1]ppp chap pass cip 123456
[R2-Serial3/0/1]int se4/0/0
[R2-Serial4/0/0]ppp chap user wangdaye
[R2-Serial4/0/0]ppp chap pass cip 123456
[R2-Serial4/0/0]