HCNA-RIP定时器

1、拓扑图

2、

1.RIP有哪些定时器?
三种:更新定时器、老化定时器、垃圾回收定时器

2.RIP的定时器有哪些作用?
更新定时器(30s):运行RIP的路由器会以30s为周期,向邻居发送RIP路由。
老化定时器(180s):当路由器在180s内没有收到一条RIP路由的更新,那么路由器会认为这条RIP路由已经失效。
垃圾回收定时器(120s):当路由器被设置为失效后,不会被立即删除,需要再等待120s才会被彻底删除。

3.为什么RIP需要周期性的发送路由?
因为RIP基于UDP发送协议报文,而UDP没有确认机制,所以路由器将路由发送出去以后不能得知邻居是否收到了RIP路由。
为了保障路由的可靠更新,只有让路由器周期性的发送RIP路由,这样从概率上来说能够保证邻居路由器一定可以学习到RIP路由。
方法

1.配置接口IP

2.配置RIP协议

3.查看RIP定时器:
[R1]display rip

4.修改RIP定时器:
[R1]rip
[R1-rip-1]timers rip 10 60 40    
[R1-rip-1]quit

5.再次查看RIP定时器:
[R1]display rip

 

R1

Please press enter to start cmd line!
################################################################################
######################
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]dis rip    
[Huawei]dis rip
[Huawei]sysname    
[Huawei]sysname R1
[R1]int    
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/0]q
[R1]rip 100
[R1-rip-100]ne    
[R1-rip-100]network 12.0.0.0
[R1-rip-100]q
[R1]dis rip    
[R1]dis rip
Public VPN-instance    
    RIP process : 100
       RIP version   : 1
       Preference    : 100
       Checkzero     : Enabled
       Default-cost  : 0
       Summary       : Enabled
       Host-route    : Enabled
       Maximum number of balanced paths : 8
       Update time   : 30 sec              Age time : 180 sec 
       Garbage-collect time : 120 sec 
       Graceful restart  : Disabled
       BFD               : Disabled
       Silent-interfaces : None 
       Default-route : Disabled
       Verify-source : Enabled
       Networks : 
       12.0.0.0                          
       Configured peers             : None 
       Number of routes in database : 0
       Number of interfaces enabled : 1
       Triggered updates sent       : 0
       Number of route changes      : 0
       Number of replies to queries : 0
       Number of routes in ADV DB   : 0

  Total count for 1 process : 
       Number of routes in database : 0 
       Number of interfaces enabled : 1 
       Number of routes sendable in a periodic update : 0
       Number of routes sent in last periodic update : 0 
[R1]
[R1]
[R1]rip 100
[R1-rip-100]tim    
[R1-rip-100]timers 10 60 40
                   ^
Error: Unrecognized command found at '^' position.
[R1-rip-100]tim    
[R1-rip-100]timers rip    
[R1-rip-100]timers rip 10 60 40
[R1-rip-100]q
[R1]dis rip    
[R1]dis rip
Public VPN-instance    
    RIP process : 100
       RIP version   : 1
       Preference    : 100
       Checkzero     : Enabled
       Default-cost  : 0
       Summary       : Enabled
       Host-route    : Enabled
       Maximum number of balanced paths : 8
       Update time   : 10 sec              Age time : 60 sec 
       Garbage-collect time : 40 sec 
       Graceful restart  : Disabled
       BFD               : Disabled
       Silent-interfaces : None 
       Default-route : Disabled
       Verify-source : Enabled
       Networks : 
       12.0.0.0                          
       Configured peers             : None 
       Number of routes in database : 0
       Number of interfaces enabled : 1
       Triggered updates sent       : 0
       Number of route changes      : 0
       Number of replies to queries : 0
       Number of routes in ADV DB   : 0

  Total count for 1 process : 
       Number of routes in database : 0 
       Number of interfaces enabled : 1 
       Number of routes sendable in a periodic update : 0
       Number of routes sent in last periodic update : 0 
[R1]
[R1]
[R1]

3、

 

posted @ 2017-12-11 10:54  JUSTZHI  阅读(1360)  评论(0编辑  收藏  举报