当前位置:   article > 正文

静态路由配置配置实验_配置静态路由实验

配置静态路由实验

实验步骤

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

测试

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/578008
推荐阅读
相关标签
  

闽ICP备14008679号