From wikistone
Revision as of 23:19, 20 December 2012 by Bill (talk | contribs)
Jump to: navigation, search

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:

  1. initial: HSRP is off
  2. learn: learn about the other HSRP routers
  3. listen: knows vIP address, listens for hellos
  4. speak: sending hellos to participate in election
  5. standby: is the standby
  6. 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] 

.