实验思路:先给他们都配上ip ,然后将AR2与AR3的两个端口使用 MP-mpgroup ppp链路捆绑起来,最后使用chap实现验证
具体命令:
三、具体命令
1,配IP和MP-GROUP配置R2和R3的链路
[R1]int s3/0/0
[R1-Serial3/0/0]ip address 192.168.1.1 24
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip address 192.168.2.2 24
[R2]int s 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
[R2-Serial3/0/1]int s 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
[R2]int s 3/0/0
[R2-Serial3/0/0]ip address 192.168.1.2 24
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.3 24
[R3-Mp-group0/0/0]int s 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
[R3-Serial3/0/0]int s 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
2.单向验证
[R2]aaa
[R2-aaa]local-user wangdaye password cipher wdy12345
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]int s3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R1]int s 3/0/0
[R1-Serial3/0/0]ppp chap user wangdaye
[R1-Serial3/0/0]ppp chap password cipher wdy12345
3,双向验证
[R2]aaa
[R2-aaa]local-user wangdaye password cipher wdy12345
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]int s3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R3]int s 3/0/0
[R3-Serial3/0/0]ppp chap user wangdaye
[R3-Serial3/0/0]ppp chap password cipher wdy12345
[R3-Serial3/0/0]int s 3/0/1
[R3-Serial3/0/1]ppp chap user wangdaye
[R3-Serial3/0/1]ppp chap password cipher wdy12345
[R3]aaa
[R3-aaa]local-user wangdaye password cipher wdy12345
[R3-aaa]local-user wangdaye service-type ppp
[R3-aaa]int s 3/0/0
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]int s 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R2]int s3/0/1
[R2-Serial3/0/1]ppp chap user wangdaye
[R2-Serial3/0/1]ppp chap password cipher wdy12345
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp chap user wangdaye
[R2-Serial4/0/0]ppp chap password cipher wdy12345
4,验证