当前位置:   article > 正文

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

配置静态路由实验报告
  • 实验拓扑

  • 实验要求
  1. 除了R5的环回地址固定5.5.5.0/24,其他网段基于192.168.1.0/24进行合理划分
  2. R1-R4每个路由器存在两个环回接口,模拟PC,地址也在192.168.1.0/24这个网络中
  3. 全网可达,尽量减少路由条目,避免环路
  4. R1-R4不能直接编写到达5.5.5.0/24的静态路由,但是依旧可以访问
  5. R4与R5之间正常用1000M故障时改为100M
  • 实验思路

1划分IP地址

2各设备IP地址配置

3ping 直连路由看看是否有IP地址配错,或者是接口写错等情况

4写静态路由

5对写的静态路由进行测试

6对于汇总了的IP网段的路由器进行防环处理

7写缺省路由实现全网可达

8实现静态浮动路由

9 测试静态浮动路由

  • 实验步骤

1划分IP地址

采用层级划分,先总的划分出八个网段,第一个网段用于各个接口的配置。再将这个网段继续划分,划分成只有两个可用IP地址的网段。给各个路由器的接口的IP地址进行配置。接着再拿出四个网段接着进行划分用于四个路由器的环回接口模拟路由器下面的pc。 剩下的三个网段,可以留着备用

(1)192.168.1.0/24

划分后

(接口网段):192.168.1.0/30

                                  192.168.1.4/30

                                  192.168.1.8/30

                                  192.168.1.12/30

                                  192.168.1.16/30

                                  192.168.1.20/30’

(环回网段):

                                  R1:192.168.1.32/28

                                          192.168.1.48/28

                                  R2:192.168.1.64/28

                                          192.168.1.80/28

                                  R3:  192.168.1.96/28

                                          192.168.1.112/28

                                  R4:  192.168.1.128/28

                                           192.168.1.144/28

2、各设备IP地址配置

R1环回 ip add 192.168.1.33 28

                 Ip add 192.168.1.49 28

GE0/0/0 ip add 192.168.1.1 30

GE0/0/1 ip add 192.168.1.5 30

R2环回 ip add 192.168.1.65 28

                 ip add 192.168.1.81 28

        GE0/0/0 ip add 192.168.1.2 30

        GE0/0/1 ip add 192.168.1.9 30

R3环回 ip add 192.168.1.97 28

                 Ip add 192.168.1.113 28

        GE0/0/0 ip add 192.168.1.6 30

        GE0/0/1 ip add 192.168.1.13 30

R4环回 ip add 192.168.1.129 28

                 Ip add 192.168.1.145 28

        GE0/0/0 ip add 192.168.1.14 30

        GE0/0/1 ip add 192.168.1.10 30

        GE0/0/2 ip add 192.168.1.17 30

        GE4/0/0 ip add 192.168.1.21 30

R5环回 ip add 5.5.5.5 24

        GE0/0/0  ip add 192.168.1.18 30

        GE0/0/1  ip add 192.168.1.22 30

3 ping 直连路由看看是否有IP地址配错,或者是接口写错等情况

4写静态路由

R1:

Ip route-static 192.168.1.64 27 192.168.1.2

Ip route-static 192.168.1.8 30 192.168.1.2

Ip route-static 192.168.1.128 27 192.168.1.2

Ip route-static 192.168.1.128 27 192.168.1.6

Ip route-static 192.168.1.16 30 192.168.1.2

Ip route-static 192.168.1.16 30 192.168.1.6

Ip route-static 192.168.1.20 30 192.168.1.2

Ip route-static 192.168.1.20 30 192.168.1.6

Ip route-static 192.168.1.12 30 192.168.1.6

Ip route-static 192.168.1.96 27 192.168.1.6

R2:

Ip route-static 192.168.1.32 27 192.168.1.1

Ip route-static 192.168.1.4 30 192.168.1.1

Ip route-static 192.168.1.96 27 192.168.1.1

Ip route-static 192.168.1.96 27 192.168.1.10

Ip route-static 192.168.1.12 30 192.168.1.10

Ip route-static 192.168.1.128 27 192.168.1.10

Ip route-static 192.168.1.16 30 192.168.1.10

Ip route-static 192.168.1.20 30 192.168.1.10

R3:

Ip route-static 192.168.1.32 27 192.168.1.5

Ip route-static 192.168.1.10 30 192.168.1.5

Ip route-static 192.168.1.64 27 192.168.1.5

Ip route-static 192.168.1.64 27 192.168.1.14

Ip route-static 192.168.1.8 30 192.168.1.14

Ip route-static 192.168.1.128 27 192.168.1.14

Ip route-static 192.168.1.16 30 192.168.1.14

Ip route-static 192.168.1.20 30 192.168.1.14

R4:

Ip route-static 192.168.1.96 27 192.168.1.13

Ip route-static 192.168.1.4 30 192.168.1.13

Ip route-static 192.168.1.32 27 192.168.1.13

Ip route-static 192.168.1.32 27 192.168.1.9

Ip route-static 192.168.1.0 30 192.168.1.9

Ip route-static 192.168.1.64 27 192.168.1.9

R5:

IP route-static 192.168.1.128 27 192.168.1.21

IP route-static 192.168.1.128 27 192.168.1.17

Ip route-static 192.168.1.12 30 192.168.1.17

Ip route-static 192.168.1.12 30 192.168.1.21

Ip route-static 192.168.1.96 27 192.168.1.17

Ip route-static 192.168.1.96 27 192.168.1.21

Ip route-static 192.168.1.4 30 192.168.1.17

Ip route-static 192.168.1.4 30 192.168.1.21

Ip route-static 192.168.1.32 27 192.168.1.17

Ip route-static 192.168.1.32 27 192.168.1.21

Ip route-static 192.168.1.0 30 192.168.1.17

Ip route-static 192.168.1.0 30 192.168.1.21

Ip route-static 192.168.1.64 27 192.168.1.17

Ip route-static 192.168.1.64 27 192.168.1.21

Ip route-static 192.167.1.8 30 192.168.1.17

Ip route-static 192.167.1.8 30 192.168.1.21

5全网可达测试

6对汇总的路由器进行防环配置

R1:Ip route-static 192.168.1.32 27 NULL 0

R2:ip route-static 192.168.1.64 27 NULL 0

R3:ip route-static 192.168.1.96 27 NULL 0

R4:ip route-static 192.168.1.128 27 NULL0

7写缺省路由

R1:ip route-static 0.0.0.0 0 192.168.1.2

   Ip route-static 0.0.0.0 0 192.168.1.6

R2:ip route-static 0.0.0.0 0 192.168.1.10

R3:ip route-static 0.0.0.0 0 192.168.1.14

R4: ip route-static 0.0.0.0 0 192.168.1.18

   Ip route-static 0.0.0.0 0 192.168.1.22

8实现静态路由浮动设置

将所有路由是百兆的IP地址的优先级修改为61

R5:

IP route-static 192.168.1.128 27 192.168.1.21 perference 61

Ip route-static 192.168.1.12 30 192.168.1.21 perference 61

Ip route-static 192.168.1.96 27 192.168.1.21 perference 61

Ip route-static 192.168.1.4 30 192.168.1.21 perference 61

Ip route-static 192.168.1.32 27 192.168.1.21 perference 61

Ip route-static 192.168.1.0 30 192.168.1.21 perference 61

Ip route-static 192.168.1.64 27 192.168.1.21 perference 61

Ip route-static 192.167.1.8 30 192.168.1.21 perference 61

R4:

Ip route-static 0.0.0.0 0 192.168.1.21 perference 61

9测试静态浮动路由

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

闽ICP备14008679号