当前位置:网站首页>HCIA静态路由综合实验
HCIA静态路由综合实验
2022-07-26 22:48:00 【KXY的网路课日常】
静态路由综合性实验,首先我们了解一下这次实验的知识点
静态的扩展配置:
- 负载均衡:当访问相同目标,具有多条开销相似路径时;可以让设备将流量拆分后延多条路径同时传输;起到带宽叠加的作用;
- 环回接口-- 创建后,可用于路由器测试TCP/IP协议组件是否能够封装与解封装
同时,可用于实验环境中,模拟连接PC终端的用户接口,来减少实际设备成本需求;
- 手工汇总
若路由器需要访问多个连续子网,且具有相同的下一跳;可以将这些网段进行汇总计算;之后仅编写到达汇总网段路由即可;---节省路由表条目数量
- 路由黑洞
汇总地址中包含了,网络内实际不存在的网段时;让将导致流量有去无回;浪费链路资源;
建议合理的ip地址规划(便于无黑洞汇总),尽量精确汇总;
- 缺省路由 -- 一条不限定目标的路由,代表所有网段;路由器查表时在查询完本地所有的直连、静态、动态路由后若依然没有可达路径,才使用该条目;
- 空接口
当路由黑洞与缺省路由相遇时,将必然出现环路;
在黑洞路由器上,配置一条到达汇总网段的空接口路由;空接口及丢弃流量;来避免环路的产生;
- 浮动静态
不同方式产生到路由表中条目,其优先级不同;直连=0 静态=60
优先级取值范围 0-255 越小越好;

根据题目条件和拓扑设计先对192.168.1.0/24进行子网划分

这个实验拓扑设计以及路由器接口IP环回接口汇总如下图

在开启设备前记得一定要先个R4增加一个接口

首先对个路由器接口配置IP地址以及下一跳端口
R1
[R1]int g0/0/0
[R1]ip add 192.168.1.1 30
[R1]int g0/0/1
[R1]ip add 192.168.1.5 30
[R1]int loo0
[R1]ip add 192.168.1.33 28
[R1]int loo1
[R1]ip add 192.168.1.49 28
[R1]ip route-static 192.168.1.64 27 192.168.1.6
[R1]ip route-static 192.168.1.96 27 192.168.1.2
[R1]ip route-static 192.168.1.12 30 192.168.1.2
[R1]ip route-static 192.168.1.8 30 192.168.1.6
[R1]ip route-static 192.168.1.128 27 192.168.1.10
[R1]ip route-static 192.168.1.128 27 192.168.1.14
[R1]ip route-static 192.168.1.96 27 192.168.1.2
[R1]ip route-static 192.168.1.16 30 192.168.1.10
[R1]ip route-static 192.168.1.16 30 192.168.1.14
R2
[R2]int g0/0/0
[R2]ip add 192.168.1.6 30
[R2]int g0/0/1
[R2]ip add 192.168.1.9 30
[R2]int loo0
[R2]ip add 192.168.1.65 28
[R2]int loo1
[R2]ip add 192.168.1.81 28
[R2]ip route-static 192.168.1.0 30 192.168.1.5
[R2]ip route-static 192.168.1.12 30 192.168.1.10
[R2]ip route-static 192.168.1.16 30 192.168.1.10
[R2]ip route-static 192.168.1.16 30 192.168.1.14
[R2]ip route-static 192.168.1.32 27 192.168.1.5
[R2]ip route-static 192.168.1.128 27 192.168.1.10
[R2]ip route-static 192.168.1.96 27 192.168.1.13
[R2]ip route-static 192.168.1.96 27 192.168.1.2
R3
[R3]int g0/0/0
[R3]ip add 192.168.1.2 30
[R3]int g0/0/1
[R3]ip add 192.168.1.13 30
[R3]int g0/0/0
[R3]ip add 192.168.1.2 30
[R3]int g0/0/1
[R3]ip add 192.168.1.13 30
[R3]ip route-static 192.168.1.4 30 192.168.1.1
[R3]ip route-static 192.168.1.8 30 192.168.1.14
[R3]ip route-static 192.168.1.16 30 192.168.1.14
[R3]ip route-static 192.168.1.16 30 192.168.1.10
[R3]ip route-static 192.168.1.32 27 192.168.1.1
ip route-static 192.168.1.128 27 192.168.1.14
[R3]ip route-static 192.168.1.64 27 192.168.1.6
[R3]ip route-static 192.168.1.64 27 192.168.1.9
R4
[R4]int g0/0/0
[R4]ip add 192.168.1.10 30
[R4]int g0/0/1
[R4]ip add 192.168.1.14 30
[R4]int g0/0/2
[R4]ip add 192.168.1.17 30
[R4]int g4/0/0
[R4]ip add 192.168.1.21 30
[R4]int loo0
[R4]ip add 192.168.1.115 28
[R4]int loo1
[R4]ip add 192.168.1.129 28
[R4]ip route-static 192.168.1.0 30 192.168.1.13
[R4]ip route-static 192.168.1.4 30 192.168.1.9
[R4]ip route-static 192.168.1.96 27 192.168.1.13
[R4]ip route-static 192.168.1.32 27 192.168.1.1
[R4]ip route-static 192.168.1.32 27 192.168.1.5
R5
[R5]int g0/0/1
[R5]ip add 192.168.1.18 30
[R5]int g0/0/0
[R5]ip add 192.168.1.22 30
[R5]int loop0
[R5]ip add 5.5.5.2 24
[R5]ip route-static 192.168.1.32 27 192.168.1.17
[R5]ip route-static 192.168.1.64 27 192.168.1.17
[R5]ip route-static 192.168.1.96 27 192.168.1.17
[R5]ip route-static 192.168.1.128 27 192.168.1.17
[R5]ip route-static 192.168.1.0 30 192.168.1.17
[R5]ip route-static 192.168.1.4 30 192.168.1.17
[R5]ip route-static 192.168.1.8 30 192.168.1.17
[R5]ip route-static 192.168.1.12 30 192.168.1.17
要达到全网可通,下来我们要给每个路由器配置省缺路由
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]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.0.0.0 192.168.1.22 p 61 (选择优先级)
此时我们已经达到全网可通
用R1去pingR5的环回接口

最后完成正常1000m故障100m
对R5选择优先级
[R5]ip route-static 192.168.1.32 27 192.168.1.21 p 61
[R5]ip route-static 192.168.1.64 27 192.168.1.21 p 61
[R5]ip route-static 192.168.1.96 27 192.168.1.21 p 61
[R5]ip route-static 192.168.1.128 27 192.168.1.21 p 61
[R5]ip route-static 192.168.1.0 30 192.168.1.21 p 61
[R5]ip route-static 192.168.1.4 30 192.168.1.21 p 61
[R5][R5]ip route-static 192.168.1.8 30 192.168.1.21 p 61
[R5]ip route-static 192.168.1.12 30 192.168.1.21 p 61
接下来我们查询R5的路由表

并没有显示我们刚设置的优先级
通过模拟故障,关闭 g0/0/1 192.168.1.18这个接口
[R5]int g0/0/1
[R5]shutdown
再次查看路由表

OK成功
最后一步为环路和黑洞的出现增加一个空接口
[R1]ip route-static 192.168.1.32 27 NULL0
[R2]ip route-static 192.168.1.64 27 NULL0
[R3]ip route-static 192.168.1.96 27 NULL0
[R4]ip route-static 192.168.1.128 27 NULL0
此刻我们的实验就完成了
边栏推荐
- Connect mysql detailed graphic operations in ECs docker (all)
- Text to image paper intensive reading ssa-gan: text to image generation with semantic spatial aware Gan
- 2022年T2I文本生成图像 中文期刊论文速览-1(ECAGAN:基于通道注意力机制的文本生成图像方法+CAE-GAN:基于Transformer交叉注意力的文本生成图像技术)
- [translation] reduced precision in tensorrt
- a元素的伪类
- Text to image intensive reading of paper gr-gan: gradually refine text to image generation
- [paddleseg source code reading] paddleseg export static graph export Trace in py file
- 力扣获取第二大的成绩
- 初识网页设计
- 分库与分表
猜你喜欢

力扣获取第二大的成绩

Introduction to network - Introduction to home networking & basic network knowledge

left join 、inner join 、right join区别
![[reprint] GPU compute capability table](/img/7c/87be1131f52f21fe080c36f0834467.png)
[reprint] GPU compute capability table

QoS quality of service - QoS overview

IS指标复现 文本生成图像IS分数定量实验全流程复现 Inception Score定量评价实验踩坑避坑流程
![[Database Course Design] SQLSERVER database course design (student dormitory management), course design report + source code + database diagram](/img/24/fe01d656a54086adf8a3702b82cc26.png)
[Database Course Design] SQLSERVER database course design (student dormitory management), course design report + source code + database diagram
![[explain C language in detail] takes you to play with loop structure (for_while_do while)](/img/d9/75053297873a5b5458514e7f557cdc.png)
[explain C language in detail] takes you to play with loop structure (for_while_do while)
![[explain C language in detail] this article takes you to know C language and makes you impressed](/img/37/205c1c6eb2ba704941e48ff89c6268.png)
[explain C language in detail] this article takes you to know C language and makes you impressed

Text to image intensive reading df-gan:a simple and effective baseline for text to image synthesis
随机推荐
SQL anti injection regular expression
C语言实现小游戏【三子棋】注释详细 逻辑清晰 快来看看吧!!
left join 、inner join 、right join区别
行,表,页,共享,排他,悲观,乐观,死锁
STM32 HAL库串口(UART/USART)调试经验(一)——串口通信基础知识+HAL库代码理解
Run NPM run dev to run 'NPM audit fix' to fix them, or 'NPM audit' for details
关于在VS2022或者高级版本运行环境下遇到fopen,strerror等不安全的问题
测开基础 日常刷题 (持续更新ing...)
【数据库课程设计】SQLServer数据库课程设计(学生宿舍管理),课设报告+源码+数据库关系图
[paddleseg source code reading] paddleseg export static graph export Trace in py file
三范式,约束,部分关键字区别,
DF-GAN实验复现——复现DFGAN详细步骤 及使用MobaXtem实现远程端口到本机端口的转发查看Tensorboard
Connect mysql detailed graphic operations in ECs docker (all)
JS max?
静态路由缺省路由vlan实验
6.28 flush written test
PHP processing tree and infinite processing
2022zui新抖音24小时循环值守直播监控(一)直播间开播监控
[explain C language in detail] takes you to play with the choice (Branch) structure
Text to image论文精读SSA-GAN:基于语义空间感知的文本图像生成 Text to Image Generation with Semantic-Spatial Aware GAN