RIP路由协议

给路由器配置RIP路由协议,路由器之间就会相互发送自己的路由表信息进行学习。
·
RIP使用条数作为唯一的度量值,最大条数为15跳,16跳为不可达。
·
RIP使用的是UDP协议 端口号为520
·
水平分割可以阻止路由环路的发生。
水平分割的规则是:从一个端口学习到路由信息,不在从这的端口发送出去。
·
RIP v1 与 RIP v2的区别
RIPv1广播发送路由更新广播地址255.255.255.255;
RIPv2组播发送路由更新组播地址224.0.0.9
RIPv1无法关闭路由汇总,RIPv2可以关闭
·
RIP路由协议
·
RIPv2配置
R1(config)#router rip
R1(config-router)#version 2-----------版本为2
R1(config-router)#no auto-summary---------关闭路由汇总
R1(config-router)#network 192.168.10.0------宣告主网络号
R1(config-router)#network 12.0.0.0
·
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 12.0.0.0
R2(config-router)#network 13.0.0.0
·
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 13.0.0.0
R3(config-router)#network 192.168.20.0
·
使用show ip route查看路由表
C 192.168.10.0/24 is directly connected, FastEthernet0/1
R 192.168.20.0/24 [120/2] via 12.0.0.2, 00:00:26, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.0.0 is directly connected, FastEthernet0/0
13.0.0.0/24 is subnetted, 1 subnets
R 13.0.0.0 [120/1] via 12.0.0.2, 00:00:26, FastEthernet0/0
·
[120/2]解释
120管理距离:表示网络可信度,2度量值:表示条数
静态路由管理距离是1
OSPF管理距离是110

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章