静态综合实验

一、实验题目

请添加图片描述

二、题目分析

1.基于192.168.1.0/24划分除R5的环回地址外的所有网段 ,我们将其分为骨干链路和环回链路
2.R1—R4每个路由器上都带两个环回地址
3.编写缺省路由去访问5.5.5.0/24的静态路由
4.用汇总静态路由实现全网可达,使用空接口避免环路出现
5.使用浮动静态路由实现静态路由的备份

三、实验的具体操作

1.划分网段:
骨干链路
R1环回
R2环回
R3环回
R4环回

划分5个网段 借用3个主机位
-192.168.1.000 00000 /27 骨干链路(6条,在往后借3位主机位)
— 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.001 00000 /27------192.168.1.32/27
—192.168.1.001 00000---------192.168.1.32/28
—192.168.1.001 10000---------192.168.1.48/28
-192.168.1.010 00000 /27------192.168.1.64/27
—192.168.1.010 00000---------192.168.1.64/28
—192.168.1.010 10000---------192.168.1.80/28
-192.168.1.011 00000 /27------192.168.1.96/27
—192.168.1.011 00000---------192.168.1.96/28
—192.168.1.011 10000---------192.168.1.112/28
-192.168.1.100 00000 /27------192.168.1.128/27
—192.168.1.100 00000---------192.168.1.128/28
—192.168.1.100 10000---------192.168.1.144/28

划分成如图的网段:
在这里插入图片描述
2.配置接口和IP地址
以R1为例:
在这里插入图片描述
3.使用缺省路由去访问R5的环回
R1–R4都写上指向R5的缺省路由
在这里插入图片描述

4.写上静态路由和汇总,实现全网可达

ip route-static 指向的网段 下一跳的入口

以R1位例:
添加如下的指令,实现全网可达:

ip route-static 192.168.1.128 27 192.168.1.2

ip route-static 192.168.1.12  30 192.168.1.2

ip route-static 192.168.1.96  27 192.168.1.2

ip route-static 192.168.1.16  30 192.168.1.2

ip route-static 192.168.1.20 30 192.168.1.2

ip route-static 192.168.1.64 27 192.168.1.6

ip route-static 192.168.1.8 30 192.168.1.6

ip route-static 192.168.1.96 27 192.168.1.6

ip route-static 192.168.1.16 30 192.168.1.6

ip route-static 192.168.1.20 30 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.64 27 192.168.1.1
ip route-static 192.168.1.96 27 192.168.1.14
ip route-static 192.168.1.8 30 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


R3
ip route-static 192.168.1.32 27 192.168.1.5
ip route-static 192.168.1.0 30 192.168.1.5
ip route-static 192.168.1.128 27 192.168.1.5
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.16 30 192.168.1.10
ip route-static 192.168.1.20 30 192.168.1.10


R4
ip route-static 192.168.1.128 27 192.168.1.13
ip route-static 192.168.1.0 30 192.168.1.13
ip route-static 192.168.1.32 27 192.168.1.13
ip route-static 192.168.1.4 30 192.168.1.9
ip route-static 192.168.1.64 27 192.168.1.9
ip route-static 192.168.132 27 192.168.1.9


R5
ip route-static 192.168.1.12 30 192.168.1.17
ip route-static 192.168.1.128 27 192.168.1.17
ip route-static 192.168.1.0 30 192.168.1.17
ip route-static 192.168.1.32 27 192.168.1.17
ip route-static 192.168.1.96 27 192.168.1.17
ip route-static 192.168.1.8 30 192.168.1.17
ip route-static 192.168.1.64 27 192.168.1.17
ip route-static 192.168.1.4 30 192.168.1.17
ip route-static 192.168.1.32 27 192.168.1.17


成功ping通所有的地址,实现全网可达
在这里插入图片描述

5.浮动静态路由:通过对默认优先级的修改,实现静态路由备份的目的
[Huawei]ip route-static 0.0.0.0 0.0.0.0 192.168.1.22 preference 100

在这里插入图片描述


ip route-static 192.168.1.8 30  192.168.1.21 preference 100
ip route-static 192.168.1.96 27  192.168.1.21 preference 100
ip route-static 192.168.1.64 27  192.168.1.21 preference 100
ip route-static 192.168.1.4 30  192.168.1.21 preference 100
ip route-static 192.168.1.32 27  192.168.1.21 preference 100
ip route-static 192.168.1.12 30  192.168.1.21 preference 100
ip route-static 192.168.1.128 27  192.168.1.21 preference 100
ip route-static 192.168.1.0 30  192.168.1.21 preference 100

断开优先级高的接口,从R1去ping R5的环回路由:
在这里插入图片描述

在这里插入图片描述

6.加入空接口,防止出环:
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值