网络类型及数据链路层协议
实验拓扑图:
实验要求:
1.R1和R2使用ppp链路直连,R2和R3把2条ppp链路捆绑为ppp MP直连;
2.按照图示配置地址;
3.R2对R1的ppp进行单向chap验证;
4.R2和R3的ppp进行双向chap验证;
实验思路:
- 由于在把多条链路绑定为一条链路时,端口不能进行配置,所以我们先配置R2和R3之间的ppp链路直连;
- 在图上对应的IP进行配置
- 在R2上配置AAA验证,之后在R1上可以通过端口上的验证;
- 大概和步骤3相同,在R2和R3大同小异的配置好;
实验步骤:
1.R1和R2使用ppp链路直连,R2和R3把2条ppp链路捆绑为ppp MP直连;
R2:
[R2]int Mp-group 0/0/0
[R2-Mp-group0/0/0]q
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
[R2-Serial3/0/1]q
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
R3:
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]q
[R3]int s3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
[R3-Serial3/0/0]q
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
- 按照图示配置地址;
R1:
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ip add 192.168.1.1 24
R2:
[R2]int Serial 3/0/0
[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:
[R3]int Mp-group 0/0/0
[R3-Mp-group0/0/0]ip add 192.168.2.3 24
- R2对R1的ppp进行单向chap验证
R1:
[R1]int Serial 3/0/0
[R1-Serial3/0/0]ppp chap user lcl
[R1-Serial3/0/0]ppp chap password cipher 12345
R2:
[R2]aaa
[R2-aaa]local-user lcl password cipher 12345
Info: Add a new user.
[R2-aaa]local-user lcl service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap
R2对R1单向实验图:
4.R2和R3的ppp进行双向chap验证
R2:
[R2]aaa
[R2-aaa]local-user ldd password cipher 12345
Info: Add a new user.
[R2-aaa]local-user ldd service-type ppp
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp chap user lrt
[R2-Serial3/0/1]ppp chap password cipher 12345
[R2-Serial3/0/1]int s4/0/0
[R2-Serial4/0/0]ppp chap user lrt
[R2-Serial4/0/0]ppp chap password cipher 12345
R3:
[R3]aaa
[R3-aaa]local-user lrt password cipher 12345
Info: Add a new user.
[R3-aaa]local-user lrt service-type ppp
[R3]int Serial 3/0/0
[R3-Serial3/0/0]ppp authentication-mode chap
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R3]int Serial 3/0/0
[R3-Serial3/0/0]ppp chap user ldd
[R3-Serial3/0/0]ppp chap password cipher 12345
[R3-Serial3/0/0]int s3/0/1
[R3-Serial3/0/1]ppp chap user ldd
[R3-Serial3/0/1]ppp chap password cipher 12345
R2和R3双向实验图:
配置表单:
R1:
R2:
R3:
注:实验前提是我们使用Serial口进行配置。