静态路由配置配置实验

实验步骤

1.首先进行子网划分

192.168.1.0000 0000

192.168.1.000 0 0000 /27 ----骨干链路

192.168.1.000 000 00 /30 192.168.1.0/30

192.168.1.000 001 00/30 192.168.1.4/30

192.168.1.000 010 00/30 192.168.1.8/30

192.168.1.000 011 00/30 192.168.1.12/30

192.168.1.000 100 00/30 192.168.1.16/30

192.168.1.000 101 00/30 192.168.1.20/30

192.168.1.000 110 00/30 192.168.1.24/30

192.168.1.001 0 0000/27-----R7 环回

192.168.1.001 0 0001/28 192.168.1.33/28

192.168.1.001 1 0001/28 192.168.1.49/28

192.168.1.010 0 0000/27----R10环回

192.168.1.010 0 0001/28 192.168.1.65/28

192.168.1.010 1 0001/28 192.168.1.81/28

192.168.1.011 0 0000/27-----R11环回

192.168.1.011 0 0001/28 192.168.1.97/28

192.168.1.011 1 0001/28 192.168.1.113/28

192.168.1.100 0 0000/27-----R12环回

192.168.1.100 0 0001/28 192.168.1.129/28

192.168.1.100 1 0001/28 192.168.1.145/28

  1. 配置路由器端口ip 和环路接口

  1. R7

[R7-GigabitEthernet0/0/0]ip add 192.168.1.1 30

[R7-GigabitEthernet0/0/1]ip add 192.168.1.9 30

[R7-LoopBack0]ip add 192.168.1.32

[R7-LoopBack1]ip add 192.168.1.49 28

R10

[R10-GigabitEthernet0/0/0]ip add 192.168.1.2 30

R10-GigabitEthernet0/0/1]ip add 192.168.1.5 30

R10-GigabitEthernet0/0/1]ip add 192.168.1.5 30

[R10-LoopBack0]ip add 192.168.1.65 28

[R10-LoopBack1]ip add 192.168.1.81 24

R11

[R11-GigabitEthernet0/0/1]ip add 192.168.1.5 30

[R11-GigabitEthernet0/0/0]ip add 192.168.1.9 30

[R11-LoopBack0]ip add 192.168.1.97 28

[R11-LoopBack1]ip add 192.168.1.113 28

R12

[R12-GigabitEthernet0/0/0]ip add 192.168.1.6 30

[R12-GigabitEthernet0/0/1]ip add 192.168.1.14 30

[R12-LoopBack0]ip add 192.168.1.65 28

[R12-LoopBack1]ip add 192.168.1.145 28

静态路由的配置

R7

[R7]ip route-static 192.168.1.64 28 192.168.1.1

[R7]ip route-static 192.168.1.64 28 192.168.1.2

[R7]ip route-static 192.168.1.96 28 192.168.1.10

[R7]ip route-static 192.168.1.168 28 192.168.1.10

[R7]ip route-static 192.168.1.20 30 192.168.1.10

R10

[R10]ip route-static 192.168.1.32 28 192.168.1.1

[R10]ip route-static 192.168.1.96 28 192.168.1.1

[R10]ip route-static 192.168.1.8 30 192.168.1.1

R10]ip route-static 192.168.1.128 27 192.168.1.6

[R10]ip route-static 192.168.1.12 30 192.168.1.6

[R10]ip route-static 192.168.1.96 28 192.168.1.6

R11

[R11-LoopBack0]ip add 192.168.1.97 28

[R11-LoopBack1]ip add 192.168.1.113 28

[R11]ip route-static 192.168.1.0 30 192.168.1.10

[R11]ip route-static 192.168.1.32 28 192.168.1.10

[R11]ip route-static 192.168.1.64 28 192.168.1.10

[R11]ip route-static 192.168.1.128 30 192.168.1.14

[R11]ip route-static 192.168.1.4 30 192.168.1.14

R12

[R12]ip route-static 192.168.1.0 30 192.168.1.5

[R12]ip route-static 192.168.1.8 30 192.168.1.13

[R12]ip route-static 192.168.1.64 28 192.168.1.5

[R12]ip route-static 192.168.1.96 28 192.168.1.13

[R12]ip route-static 192.168.1.32 28 192.168.1.13

配置缺省路由

[R7]ip route-static 0.0.0.0 0 192.168.1.2

[R12]ip route-static 0.0.0.0 0 192.168.1.5

[R10]ip route-static 0.0.0.0 0 192.168.1.1

[R11]ip route-static 0.0.0.0 0 192.168.1.10

配置空接口方回环

[R7]ip route-static 192.168.1.32 27 NULL 0

[R12]ip route-static 192.168.1.128 27 NULL 0

[R10]ip route-static 192.168.1.64 27 NULL 0

[R11]ip route-static 192.168.1.96 27 NULL 0

测试

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值