实验步骤
1、R1和R2使用ppp链路之连,R2和R3把2条ppp链路捆绑为ppp直连
[R2]int Mp-group 0/0/0
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
[R2-Serial3/0/1]int Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]int Serial 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
[R3-Serial3/0/0]int Serial 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
2、按照图示配置IP地址
[R1-Serial3/0/0]ip add 192.168.1.1 24
[R2-Serial3/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
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24
3、R2对R1的ppp进行单向chap验证
R2作为主验证器,R1作为被验证器
[R2]aaa
[R2-aaa]local-user wangdaye password cipher 12345
[R2-aaa]local-user wangdaye service-type ppp
[R2-aaa]int Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ppp chap user wangdaye
[R1-Serial3/0/0]ppp chap password cipher wdy12345
R1pingR2结果
将R2相应接口关闭后ping
4、R2和R3的ppp进行双向chap验证
R2作为主验证器,R3作为被验证器
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.2 24
[R2]aaa
[R2-aaa]local-user wangdaye password cipher wdy12345
Info: Add a new user.
[R2-aaa]local-user wangdaye service-type ppp
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2-Serial3/0/1]int Serial 4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R3]int Serial 3/0/0
[R3-Serial3/0/0]ppp chap user wangdaye
[R3-Serial3/0/0]ppp chap password cipher wdy12345
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp chap user wangdaye
[R3-Serial3/0/1]ppp chap password cipher wdy12345
R2pingR3结果
关闭R3的两个接口后
R3作为主验证器,R2作为被验证器
[R3]aaa
[R3-aaa]local-user wangdaliang password cipher wdl12345
Info: Add a new user.
[R3-aaa]local-user wangdaliang service-type ppp
[R3-aaa]int Serial 3/0/0
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]int Serial 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp chap user wangdaliang
[R2-Serial3/0/1]ppp chap password cipher wdl12345
[R2-Serial3/0/1]int Serial 4/0/0
[R2-Serial4/0/0]ppp chap user wangdaliang
[R2-Serial4/0/0]ppp chap password cipher wdl12345