RIP:路由信息协议 Routing Information Protocol,它是一种基于距离矢量(Distance-Vector)算法的协议。
-
使用跳数作为度量来衡量到达目的网络的距离
-
最多15跳,16跳不可达
-
RIP古老、收敛速度慢,用于规模较小的网络
RIP工作原理

-
路由器运行Rip后,会首先发送路由更新请求,收到请求的路由器会发送自己的rip路由进行响应。
-
网络稳定后,路由器会周期性发送路由更新信息(间隔30s,死亡时间120s)
RIP基本配置

RTA:
rip
version 2 # rip两个版本:version1、version2
network 10.0.0.0
配置示例

R1:
rip 1
version 2
network 192.168.10.0
network 12.1.1.0 # rip宣告直连主类网络
同样的配置R2、R3。
抑制接口

rip
silent-interface G0/0/1
配置G0/0/1接口为抑制状态,只接收rip报文,不发送。
此命令的优先级大于 rip input 和 rip output 。
rip
undo summary # 关闭自动汇总
#
<h3c>reset rip 1 process # 重置rip进程
#
dis ip routing-table # 查看路由
dis ip routing-table protocol rip