RIP

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)



本文转自 天涯飞客 51CTO博客,原文链接:http://blog.51cto.com/425093014/1034011,如需转载请自行联系原作者

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值