当前位置:网站首页>HCIA动态路由RIP基础实验
HCIA动态路由RIP基础实验
2022-07-26 22:48:00 【KXY的网路课日常】
动态路由是与静态路由相对的一个概念,指路由器能够根据路由器之间的交换的特定路由信息自动地建立自己的路由表,并且能够根据链路和节点的变化适时地进行自动调整。当网络中节点或节点间的链路发生故障,或存在其它可用路由时,动态路由可以自行选择最佳的可用路由并继续转发报文。
静态协议的优缺点:
缺点:1、中大型网络配置量过大
2、不能基于拓扑的变化而实时的变化
优点:
1、不会额外暂用物理资源
2、安全问题
3、计算路径问题
所以简单、小型网络建议使用静态路由;中大型较复杂网络,建议使用动态;
动态路由协议:路由器间沟通,协商,计算自动生成路由表;在拓扑结构发生变化后,可以实时收敛(重新计算)来适应新的结构;
RIP:路由信息协议 距离矢量协议
存在V1/V2/NG(下一代IPV6专用)
基于UDP520端口工作;使用跳数作为度量;更新方式:30s周期更新、触发更新
周期更新--保活 取代确认 优先级100;支持等开销负载均衡;
V1和V2的区别:
- V1有类别协议,不携带子网掩码,不能区分子网划分和汇总;
V2无类别协议,携带子网掩码,进行VLSM和子网汇总,不支持超网;
- V1广播更新--255.255.255.255 V2组播更新--224.0.0.9
- V2支持手工认证
下来就是我们今天的实验

第一步还是先搭建网络基础,对192.168.1.0/24进行子网划分对个路由器的接口配置IP

拓扑设计以及各接口IP如下图

因为路由器默认使用v1所以对每个路由器都输入
rip 1
ver 2
下来进行宣告,因为每个网段都是通过192.168.1.0/24划分,所以每个路由器都宣告192.168.1.0
输入
network 192.168.1.0
要做到全网可达,要通过R3向R1 R2发送缺省路由
对R3输入
default-route originate
查看R1,R1的路由表只看RIP
输入
display ip routing-table p rip


可以看到R1,R2自动多了一条缺省
自此已经做到全网可达,用R1去pingR3的环回
ping 3.3.3.3

下来就是保障更新安全对每个接口进行加密
R1
int g0/0/0
rip authentication-mode md5 usual cipher 456789
R2
int g0/0/0
rip authentication-mode md5 usual cipher 456789
int g0/0/1
rip authentication-mode md5 usual cipher 123456
R3
int g0/0/0
rip authentication-mode md5 usual cipher 123456
为减少路由条目数量,对路由进行汇总,先查看R3的路由表

可以看到有五条RIP
输入
R1
int g0/0/0
rip summary-address 192.168.1.64 255.255.255.192 (此处子网掩码要写成十进制)
R2
int g0/0/0
rip summary-address 192.168.1.128 255.255.255.192 (此处子网掩码要写成十进制)
int g0/0/1
rip summary-address 192.168.1.128 255.255.255.192 (此处子网掩码要写成十进制)
再次查看R3的路由表,只有三条路由

最后为避免环路的产生给R1 R2增加一个空接口就行
R1
ip route-static 192.168.1.64 26 NULL 0
R2
ip route-static 192.168.1.128 26 NULL 0
实验结束。
总结R1 R2 R3输入代码
R1
int g0/0/0
ip add 192.168.1.1 30
int loop0
ip add 192.168.1.65 27
int loop1
ip add 192.168.1.97 27
rip 1
ver 2
network 192.168.1.0
int g0/0/0
rip authentication-mode md5 usual cipher 456789
int g0/0/0
rip summary-address 192.168.1.64 255.255.255.192
ip route-static 192.168.1.64 26 NULL 0
R2
int g0/0/0
ip add 192.168.1.2 30
int g0/0/1
ip add 192.168.1.5 30
int loop0
ip add 192.168.1.129 27
int loop1
ip add 192.168.1.161 27
rip 1
ver 2
network 192.168.1.0
int g0/0/0
rip authentication-mode md5 usual cipher 456789
int g0/0/1
rip authentication-mode md5 usual cipher 123456
int g0/0/0
rip summary-address 192.168.1.128 255.255.255.192
int g0/0/1
rip summary-address 192.168.1.128 255.255.255.192
ip route-static 192.168.1.128 26 NULL 0
R3
int g0/0/0
ip add 192.168.1.6 30
int loop0
ip add 3.3.3.3 24
rip 1
ver 2
network 192.168.1.0
default-route originate
int g0/0/0
rip authentication-mode md5 usual cipher 123456
边栏推荐
- OSPF协议知识汇总
- 7.16 多益网络笔试
- Autojs learning - realize image cutting
- 7.7 SHEIN希音笔试
- MVCC及其原理详解
- DF-GAN实验复现——复现DFGAN详细步骤 及使用MobaXtem实现远程端口到本机端口的转发查看Tensorboard
- Text to image paper intensive reading rat-gan: recursive affine transformation for text to image synthesis
- dlib安装失败解决办法
- [translation] explicit and implicit batch in tensorrt
- When El table is selected, the jump page remains selected
猜你喜欢

GAN的训练技巧:炼丹师养成计划 ——生成式对抗网络训练、调参和改进

Transport layer --------- TCP (II)

mysql优化概论

利用九天深度学习平台复现SSA-GAN

a元素的伪类

索引失效原理讲解及其常见情况

Text to image论文精读DF-GAN:A Simple and Effective Baseline for Text-to-Image Synthesis一种简单有效的文本生成图像基准模型

Pseudo class of a element

ACM模式输入输出练习

Text to image paper intensive reading rat-gan: recursive affine transformation for text to image synthesis
随机推荐
Ospf基础配置应用( 综合实验: 干涉选举 缺省路由 区域汇总 认证--接口认证)
How does MySQL get the first three items in each group
7.7 sheen Xiyin written test
Es specify user name and password when instantiating resthighlevelclient
DF-GAN实验复现——复现DFGAN详细步骤 及使用MobaXtem实现远程端口到本机端口的转发查看Tensorboard
2022最新抖音直播监控(二)直播间流媒体下载
Redis uses queues for consumption
[reprint] GPU compute capability table
HCIA基础知识(1)
STM32_HAL_SUMMARY_NOTE
Autojs learning - realize image cutting
Text to image论文精读SSA-GAN:基于语义空间感知的文本图像生成 Text to Image Generation with Semantic-Spatial Aware GAN
R分数复现 R-precision评估指标定量 文本生成图像R分数定量实验全流程复现(R-precision)定量评价实验踩坑避坑流程
Js九九乘法表
2022 latest live broadcast monitoring 24-hour monitoring (III) analysis of barrage in live broadcast room
Flink1.13.6 detailed deployment method
2022最新直播监控24小时监控(三)直播间弹幕解析
RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
Electron FAQ 61 - must the client run with administrator privileges?
6.28同花顺笔试