Chapter 38
Configuring HSRP and Enhanced Object Tracking
Configuring HSRP Object Tracking
Beginning in privileged EXEC mode, follow these steps to configure a standby HSRP group to track an
object and change the HSRP priority based on the object state:
Command
Step 1
configure terminal
Step 2
track object-number {interface
interface-id {line-protocol | ip
routing} | ip route
ip-address/prefix-length {metric
threshold | reachability} | list
{boolean {and | or}} | {threshold
{weight | percentage}}}
Step 3
exit
Step 4
interface interface-id
Step 5
standby [group-number] ip
[ip-address [secondary]]
OL-8915-03
Purpose
Enter global configuration mode.
(Optional) Create a tracking list to track the configured state and enter
tracking configuration mode.
Note
Although visible in the command-line help, the rtr keyword is not
supported.
•
The object-number range is from 1 to 500.
Enter interface interface-id to select an interface to track.
•
Enter line-protocol to track the interface line protocol state.
–
Enter ip routing to track the interface IP routing state.
–
Enter ip route ip-address/prefix-length to track the state of an IP route.
•
Enter metric threshold to track the threshold metric. The default up
–
threshold is 254 and the default down threshold is 255.
Enter reachability to track if the route is reachable.
–
Enter list to track objects grouped in a list. Configure the list as
•
described on the previous pages.
For boolean, see the
–
For threshold weight, see the
–
page 38-15
–
For threshold percentage, see the
on page 38-16
Repeat this step for each interface to be tracked.
Note
Return to global configuration mode.
Enter interface configuration mode.
Create (or enable) the HSRP group by using its number and virtual IP
address.
(Optional) group-number—The group number on the interface for
•
which HSRP is being enabled. The range is 0 to 255; the default is 0. If
there is only one HSRP group, you do not need to enter a group number.
(Optional on all but one interface) ip-address—The virtual IP address of
•
the hot standby router interface. You must enter the virtual IP address for
at least one of the interfaces; it can be learned on the other interfaces.
(Optional) secondary—The IP address is a secondary hot standby router
•
interface. If this keyword is omitted, the configured address is the
primary IP address.
Cisco Catalyst Blade Switch 3020 for HP Software Configuration Guide
Configuring Enhanced Object Tracking
"Boolean Expression" section on page 38-14
"Weight Threshold" section on
"Percentage Threshold" section
38-17