Chapter 12
Configuring HSRP
S e n d d o c u m e n t c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
DETAILED STEPS
Command
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
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#
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#
Step 3
interface interface-type slot/port
Example:
switch(config)# interface ethernet
1/2
switch(config-if)#
Step 4
no switchport
Example:
switch(config-if)# no switchport
Step 5
hsrp group-number [ipv4]
Example:
switch(config-if)# hsrp 2
switch(config-if-hsrp)#
Step 6
priority [ value ]
Example:
switch(config-if-hsrp)# priority 254
Step 7
track object-number [decrement
value ]
Example:
switch(config-if-hsrp)# track 1
decrement 20
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Purpose
Enters configuration mode.
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.
Creates a tracked object for a route and enters tracking
configuration mode. The object-id range is from 1 to 500.
Enters interface configuration mode.
Configures the interface as a Layer 3 routed interface.
Creates an HSRP group and enters hsrp configuration mode.
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.
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.
Configuring HSRP
12-13