1. 程式人生 > >RIP路由協議

RIP路由協議

RIP

給路由器配置RIP路由協議,路由器之間就會相互發送自己的路由表信息進行學習。
·
RIP使用條數作為唯一的度量值,最大條數為15跳,16跳為不可達。
·
RIP使用的是UDP協議 端口號為520
·
水平分割可以阻止路由環路的發生。
水平分割的規則是:從一個端口學習到路由信息,不在從這的端口發送出去。
·
RIP v1 與 RIP v2的區別
RIPv1廣播發送路由更新廣播地址255.255.255.255;
RIPv2組播發送路由更新組播地址224.0.0.9
RIPv1無法關閉路由匯總,RIPv2可以關閉
·
技術分享圖片
·
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

RIP路由協議