Send document comments to nexus7k-docfeedback@cisco.com.
19-13
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 19      Configuring HSRP
Configuring HSRP
BEFORE YOU BEGIN 
Ensure that you have enabled the HSRP feature (see the “Enabling the HSRP Feature” section on 
page 19-8).
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1. config t
2. track object-id interface interface-type number {{ip | ipv6} routing | line-protocol}
or
track object-id {ip | ipv6} route ip-prefix/length reachability
3. interface interface-type slot/port
4. hsrp group-number
5. priority [value]
6. track object-number [decrement value]
7. preempt [delay minimum seconds] [reload seconds] [sync seconds]
8. show hsrp interface interface-type number
9. copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
track
 object-id
 interface 
interface-type number 
{{ip | ipv6} 
routing | line-protocol}
Example:
switch(config)# track 1 interface 
ethernet 2/2 line-protocol
switch(config-track#
Configures the interface that this HSRP interface tracks. 
Changes in the state of the interface affect the priority of 
this HSRP interface as follows: 
• You configure the interface and corresponding object 
number that you use with the track command in HSRP 
configuration mode.
• The line-protocol keyword tracks whether the interface 
is up. The ip keyword also checks that IP routing is 
enabled on the interface and an IP address is 
configured.
track
 object-id
 {ip | ipv6} route 
ip-prefix/length 
reachability 
Example:
switch(config)# track 2 ip route 
192.0.2.0/8 reachability
switch(config-track#
Creates a tracked object for a route and enters tracking 
configuration mode. The object-id range is from 1 to 500.