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

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