Adjusting OSPF Timers
Problem
You want to change the default OSPF timers to improve stability or convergence behavior.
Solution
You can improve the convergence time of OSPF on a particular interface by reducing the hello and dead timers:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#interfaceRouter1(config-if)#Serial0/1ip ospf hello-intervalRouter1(config-if)#5ip ospf dead-intervalRouter1(config-if)#20exitRouter1(config)#endRouter1#
If you make this change on one router, you must make it on all of the other routers sharing the same network segment:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#Serial0/0ip ospf hello-intervalRouter2(config-if)#5ip ospf dead-intervalRouter2(config-if)#20exitRouter2(config)#endRouter2#
Discussion
OSPF uses two timers. The hello timer controls how often the router sends routine messages to its neighbors simply by indicating that it is still up. If the neighbors don’t hear any hello messages for a length of time defined by the dead-interval, they assume that the router is no longer reachable and drop it from the adjacency table.
The default values are 10 seconds for the hello time, and 40 seconds for the dead time. The usual rule of thumb with OSPF is to keep the dead time value four times the hello interval. However, this is not a strict rule. EIGRP, for example, uses a dead time that is only three ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access