Manipulating HSRP Timers
Problem
You want to decrease the amount of time it takes for the backup router to take over after the primary router fails.
Solution
You can configure HSRP-enabled routers to recover more quickly after the primary HRSP router becomes unavailable with the standby timers configuration command:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#interfaceRouter1(config-if)#FastEthernet0/1standby 1 ipRouter1(config-if)#172.22.1.1standby 1 priorityRouter1(config-if)#120standby 1 preemptRouter1(config-if)#standby 1 timersRouter1(config-if)#1 3exitRouter1(config)#endRouter1#
If you change the HSRP timers on one router, then you must change the timers on all of the other routers in the same group:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#interfaceRouter2(config-if)#FastEthernet1/0standby 1 ipRouter2(config-if)#172.22.1.1standby 1 priorityRouter2(config-if)#110standby 1 preemptRouter2(config-if)#standby 1 timersRouter2(config-if)#1 3exitRouter2(config)#endRouter2#
Discussion
By default, a router will send HSRP Hello packets every 3 seconds, and a standby router will declare itself active if it doesn’t hear any Hello packets from the active router for 10 seconds. The command in the example changes the timers from these default values to a one-second Hello period and three-second failover:
Router1(config-if)#standby 1 timers1 3
With this command, ...