1. 程式人生 > >7-高級路由:RIP計時器修改

7-高級路由:RIP計時器修改

fff after oss all send outer png col 查看

一、實驗拓撲:
技術分享圖片
Note:
1、R1、R2、R3兩邊路由器計時器一般部署要相同,不然會發生網絡動蕩。
2、RIP協議默認為版本1,查看方法:show ip protocal!
二、命令部署:
1、基本部署:
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config-if)#ip add 12.1.1.1 255.255.255.0

R1(config)#router rip
R1(config-router)#no auto-summary
R1(config-router)#version 2
R1(config-router)#network 12.1.1.1

R1(config)#int lo1

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#int f1/0
R2(config-if)#no shutdown
R2(config-if)#ip add 23.1.1.2 255.255.255.0

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 12.1.1.2

R2(config-router)#network 23.1.1.2

R3(config)#int f0/0
R3(config-if)#no shutdown
R3(config-if)#ip add 23.1.1.3 255.255.255.0

R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 23.1.1.3

2、重點部署:
①修改後:±4.75s會失效
R1(config)#router rip
R1(config-router)#time basic 5 10 30 40

R2(config)#router rip
R2(config-router)#timer basic 5 30 10 40

R3(config)#router rip
R3(config-router)#timer basic 5 30 10 40

三、驗證:
1、RIP計時器修改前:
R1#show ip protocols
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 2 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
周期廣播:30s±4.75(異同步)
失效時間:180s
抑制時間:60s(實際是60s,因為180+60=240)
刷新時間:240s 到達時間,刪除此路由

2、RIP計時器修改後:
R1#show ip protocols
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 5 seconds, next due in 2 seconds
Invalid after 30 seconds, hold down 10, flushed after 40
技術分享圖片

技術分享圖片

7-高級路由:RIP計時器修改