RIP

 

路由信息协议,属于距离矢量路由协议,是有类协议。适合小规模简单网络,因为简单所以应用广泛,但是容易引起回路。

 

192.168.2.0是和路由器相连的直连网络。

常用命令:

route rip

network 192.168.2.0

 

停止不需要的rip更新:

passive-interface f0/0

!这样路由器就不会从f0/0接口发出rip更新包。

!此命令适合所有路由协议。

 

配置后查看:

show ip int b

sh ip route

sh ip protocols

检验:

debug ip rip

结束检验:

no debug ip rip

或者

undebug all

################################

 

 

对于R1配置RIP:

172.30.1.0是一个B类网络,172.30.1.0和172.30.2.0是属于同一子网的,所以配置时应

如下:

R1(config)#route rip
R1(config-router)#network 172.30.0.0
 

 

对于R3配置RIP:

192.168.5.1/24与192.168.4.10/30是不同的子网。

R3#sh ip pro
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 8 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 1, receive any version
  Interface             Send  Recv  Triggered RIP  Key-chain
  Serial0/0/1           1     2 1  
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
 192.168.4.0
 192.168.5.0
Passive Interface(s):
 FastEthernet0/0

!不发送的接口,不在上面显示了
Routing Information Sources:
 Gateway         Distance      Last Update
 192.168.4.9          120      00:00:08
Distance: (default is 120)