From wikistone
HSRP
Hot Standby Router Protocol
Cisco Proprietary. There is 1 Active and 1 Standby. All others compete for Standby as needed.
MAC: 0000.0c07.acXX .
Priority: [1..255]; default: 100; greater wins election (higher IP breaks tie)
Default Timers:
- Hello: 3 seconds
- Hold: 3x Hello
Active and Standby send Hellos. If active is dead, standby takes over and a new standby is elected. If standby is dead, a new standby is elected.
States:
- initial: HSRP is off
- learn: learn about the other HSRP routers
- listen: knows vIP address, listens for hellos
- speak: sending hellos to participate in election
- standby: is the standby
- active: is the active
Commands
On all HSRP aware routers for a network, declare the HSRP group and IP on the network interface. Then set priority (optional) and preemption (optional).
(config-if)# standby [0..255] ip [ip_addr] (config-if)# standby [0..255] priority [0..255] (config-if)# standby [0..255] preempt
Jack with timers to make it better.
(config-if)# standby [0..255] timers [msec] [hello#] [msec] [hold#]
And track an interface and decrement the HSRP priority if that interface goes down.
(config-if)# standby [0..255] track [interface] [dec_value]
show
# sh standby [options]
.