网络分类简述与数据链路层协议
- 实验拓扑
- 实验要求
- R1和R2使用PPP链路直连,R2和R3把2条PPP链路捆绑为PPP MP直连
- 按照图示配置IP地址
- R2对R1的PPP进行单向chap验证
- R2和R3的PPP进行双向chap验证
- 实验思路
- 给R1和R2的s3/0/0接口配置IP地址,网段192.168.1.0/24
- R2---主验证方,R1----被验证方,配置PPP协议。R2开启PPP协议,设置用户wqq,密码:123123,进入s3/0/0接口开启PPP协议,R1的s3/0/0接口配置PPP协议
- R2、R3链路聚合,创建MP-Group组,创建IP地址将接口加入MP-Group组
- R2---主验证方,R3----被验证方,配置PPP协议。
- R3---主验证方,R2----被验证方,配置PPP协议。
- 实验步骤
- 配置IP地址
[R1]int s3/0/0
[R1-Serial3/0/0]ip add 192.168.1.1 24
[R1-Serial3/0/0]
[R2]int s3/0/0
[R2-Serial3/0/0]ip add 192.168.1.2 24
- 配置R2对R1的PPP
R2:
[R2]aaa
[R2-aaa]local-user wqq password cipher 123123
Info: Add a new user.
[R2-aaa]lo
[R2-aaa]local-user wqq se
[R2-aaa]local-user wqq service-type ppp
[R2-aaa]int s3/0/0
[R2-Serial3/0/0]ppp au
[R2-Serial3/0/0]ppp authentication-mode chap
[R2-Serial3/0/0]link-
[R2-Serial3/0/0]link-protocol ppp
R1:
[R1]int s3/0/0
[R1-Serial3/0/0]ppp chap user wqq
[R1-Serial3/0/0]ppp chap password cipher 123123
[R1-Serial3/0/0]
测试:
- R2与R3链路聚合,创建MP-Group组,创建IP地址将接口加入MP-Group组
在R2上创建组并配置IP地中,将R2两个接口加入组中
[R2]int MP-Group 0/0/0
[R2-Mp-group0/0/0]ip add 192.168.2.2 24
[R2-Mp-group0/0/0]int s3/0/1
[R2-Serial3/0/1]ppp mp MP-Group 0/0/0
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp mp MP-Group 0/0/0
在R2上创建组并配置IP地中,将R2两个接口加入组中
[R3]int MP-Group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24
[R3-Mp-group0/0/0]int s3/0/0
[R3-Serial3/0/0]ppp mp MP-Group 0/0/0
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp mp MP-Group 0/0/0
- R2---主验证方,R3----被验证方,配置PPP协议。
[R2]aaa
[R2-aaa]local-user wqq password cipher 123123
[R2-aaa]local-user wqq se
[R2-aaa]local-user wqq service-type ppp
[R2-aaa]int s3/0/1
[R2-Serial3/0/1]ppp au
[R2-Serial3/0/1]ppp authentication-mode chap
[R2-Serial3/0/1]link-
[R2-Serial3/0/1]link-protocol ppp
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R2-Serial4/0/0]link-protocol ppp
[R3]int s3/0/0
[R3-Serial3/0/0]ppp chap user wqq
[R3-Serial3/0/0]ppp chap password cipher 123123
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp chap user wqq
[R3-Serial3/0/1]ppp chap password cipher ******
测试:
5、R3---主验证方,R2----被验证方,配置PPP协议。
[R3]aaa
[R3-aaa]local-user wqq password cipher 123123
Info: Add a new user.
[R3-aaa]local-user wqq se
[R3-aaa]local-user wqq service-type ppp
[R3-aaa]int s3/0/0
[R3-Serial3/0/0]ppp au
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]link-
[R3-Serial3/0/0]link-protocol ppp
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R3-Serial3/0/1]link-protocol ppp
[R2]int s3/0/1
[R2-Serial3/0/1]ppp chap user wqq
[R2-Serial3/0/1]ppp chap password cipher 123123
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp chap user wqq
[R2-Serial4/0/0]ppp chap password cipher ******
测试: