网络类型及数据链路层协议

本文详细描述了在实验网络中,如何配置R1和R2使用PPP链路直连,R2和R3通过PPPMP直连捆绑两条链路,并设置单向和双向CHAP验证的过程,涉及地址配置、端口管理和AAA服务的设置。
摘要由CSDN通过智能技术生成
网络类型及数据链路层协议

实验拓扑图:

实验要求:

1.R1和R2使用ppp链路直连,R2和R3把2条ppp链路捆绑为ppp MP直连;

2.按照图示配置地址;

3.R2对R1的ppp进行单向chap验证;

4.R2和R3的ppp进行双向chap验证;

实验思路:

  1. 由于在把多条链路绑定为一条链路时,端口不能进行配置,所以我们先配置R2和R3之间的ppp链路直连;
  2. 在图上对应的IP进行配置
  3. 在R2上配置AAA验证,之后在R1上可以通过端口上的验证;
  4. 大概和步骤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

  1. 按照图示配置地址;

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

  1. 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口进行配置。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值