Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
14-13
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 14 Configuring HSRP
Configuring HSRP
DETAILED STEPS
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
track object-id interface
interface-type number {ip 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 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.
Step 3
interface interface-type slot/port
Example:
switch(config)# interface ethernet
1/2
switch(config-if)#
Enters interface configuration mode.
Step 4
no switchport
Example:
switch(config-if)# no switchport
Configures the interface as a Layer 3 routed interface.
Step 5
hsrp group-number [ipv4]
Example:
switch(config-if)# hsrp 2
switch(config-if-hsrp)#
Creates an HSRP group and enters hsrp configuration mode.
Step 6
priority [value]
Example:
switch(config-if-hsrp)# priority 254
Sets the priority level used to select the active router in an
HSRP group. The range is from 0 to 255. The default is 100.
Step 7
track object-number [decrement
value]
Example:
switch(config-if-hsrp)# track 1
decrement 20
Specifies an object to be tracked that affects the weighting
of an HSRP interface.
The value argument specifies a reduction in the priority of
an HSRP interface when a tracked object fails. The range is
from 1 to 255. The default is 10.