RIP路由协议与实验

RIP路由协议

RIP—距离矢量路由协议

RIP基本概念:定期更新,所有信息来自邻居,广播更新,组播更新,全路由表更新,RIP质量值为跳数,最大为15跳,16跳不可达,更新周期30S,UDP协议,520端口,传输层

RIPV1和RIPV2的区别
RIP路由协议与实验_第1张图片
实验:同类型同网段
RIP路由协议与实验_第2张图片
R5配置:

undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
R6

undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 10.1.2.1 24
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
R7
undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.2.2 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 10.1.3.1 24
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
R8
undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.3.2 24
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]rip
[Huawei-rip-1]net
[Huawei-rip-1]network 10.0.0.0
RIP路由协议与实验_第3张图片
未进行汇总,学习到的RIP路由依然为/24的网段。验证了同主类网络不进行汇总。

不同主类网段:

RIP路由协议与实验_第4张图片
R1

undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.1.1 24
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
R2
undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.1.2 24
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]quit
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 10.1.2.1 24
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]rip
[Huawei-rip-1]network 172.16.0.0
[Huawei-rip-1]quit
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 172.16.2.1 24
R3
undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 172.16.2.2 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 12.1.1.1 24
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]rip
[Huawei-rip-1]network 172.16.0.0
[Huawei-rip-1]rip
[Huawei-rip-1]network 12.0.0.0
R4
undo terminal monitor
sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]rip
[Huawei-rip-1]network 12.0.0.0
[Huawei-rip-1]quit
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]undo ip add 12.1.1.1 24
[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.2 24
启用RIPV2
关闭自动汇总,则不同主类网络不会进行汇总。四台路由器必须保持RIP版本一致,都做如下配置。
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]undo summary
再次查看路由表:发现RIP路由不进行汇总RIP路由协议与实验_第5张图片

你可能感兴趣的:(RIP路由协议与实验)