From wikistone
Jump to: navigation, search
(Created page with "==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 . '''Prior...")
 
 
(2 intermediate revisions by the same user not shown)
Line 23: Line 23:
  
 
==Commands==
 
==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).
+
On all HSRP aware routers for a network, declare the HSRP group. Virtual IP is learned from Active but can be manually specified (must be specified on Active). Then set priority (optional) and preemption (optional).
 
<pre>
 
<pre>
 
(config-if)# standby [0..255] ip [ip_addr]
 
(config-if)# standby [0..255] ip [ip_addr]
Line 30: Line 30:
 
Jack with timers to make it better.
 
Jack with timers to make it better.
 
<pre>
 
<pre>
−
(config-if)# standby [0..255] timers [msec] [hello] [msec] [hold]</pre>
+
(config-if)# standby [0..255] timers [msec] [hello#] [msec] [hold#]</pre>
 
And track an interface and decrement the HSRP priority if that interface goes down.
 
And track an interface and decrement the HSRP priority if that interface goes down.
 
<pre>
 
<pre>

Latest revision as of 16:41, 21 December 2012

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. Virtual IP is learned from Active but can be manually specified (must be specified on Active). 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] 

.