新建拓扑:R1,R2,R3都右键设置加两个2SA。
一.实验思路
1.对接口进行配置IP
2.将R2上面的两个serial接口与R3的两个接口进行链路聚合,然后配置IP
3.在R2(验证方)上配置PPP chap协议
4.在R1上配置验证用户名
5.要使R3和R2能进行双向chap验证,要在R3上配置ppp chap协议
6.在R2上配置验证用户名
7.每一项chap完成后进行ping测试,看是否成功!
二.实验步骤
1.给R1接口配置IP
[R1]int s 3/0/0
[R1-Serial3/0/0]ip address 192.168.1.1 242.给R2的一个接口配置IP
[R2]int s 3/0/0
[R2-Serial3/0/0]ip address 192.168.1.2 24
3.链路聚合
R2:
[R2]int Mp-group 0/0/0 ---- 创建mp-group接口
[R2]int Serial 3/0/1 ---- 进入3/0/1物理接口,将该接口划分到聚合接口中
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
[R2]int s 4/0/0 ---- 进入4/0/0物理接口,将该接口划分到聚合接接口
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
R3:
[R3]int Mp-group 0/0/0
[R3]int s 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
[R3]int s 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
4.聚合之后,给两个聚合接口配置IP
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip address 192.168.2.1 24
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.2 24
5.给R2配置ppp chap协议
[R2]aaa
[R2-aaa]local-user lyy password cipher lyy123456
Info: Add a new user.
[R2-aaa]local-user lyy service-type ppp
[R2-aaa]q
[R2]int serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
被验证方:
[R1]int s 3/0/0
[R1-Serial3/0/0]ppp chap user lyy
[R1-Serial3/0/0]ppp chap password cipher lyy123456进行测试一下: