Chapter 40 Configuring HSRP and Enhanced Object Tracking

Configuring Enhanced Object Tracking

This example configures tracked list 4 with three objects and a specified percentages to measure the state of the list:

Switch(config)# track 4 list threshold percentage

Switch(config-track)# object 1

Switch(config-track)# object 2

Switch(config-track)# object 3

Switch(config-track)#threshold percentage up 51 down 10

Switch(config-track)# exit

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

Purpose

Step 1

 

 

configure terminal

Enter global configuration mode.

Step 2

 

 

track object-number{interface

(Optional) Create a tracking list to track the configured state and enter

 

interface-id{line-protocol ip

tracking configuration mode.

 

routing} ip route

Note Although visible in the command-line help, the rtr keyword is not

 

ip-address/prefix-length {metric

 

supported.

 

threshold reachability} list

 

 

 

{boolean {and or}} {threshold

The object-numberrange is from 1 to 500.

 

{weight percentage}}}

 

Enter interface interface-idto select an interface to track.

 

 

 

 

Enter line-protocolto track the interface line protocol state.

 

 

Enter ip routing to track the interface IP routing state.

 

 

Enter ip route ip-address/prefix-lengthto 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 “Boolean Expression” section on page 40-14

 

 

For threshold weight, see the “Weight Threshold” section on

 

 

page 40-15

 

 

For threshold percentage, see the “Percentage Threshold” section

 

 

on page 40-16

 

 

Note Repeat this step for each interface to be tracked.

Step 3

 

 

exit

Return to global configuration mode.

Step 4

 

 

interface interface-id

Enter interface configuration mode.

 

 

 

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

 

 

 

 

 

OL-9775-02

 

 

40-17

 

 

 

 

 

Page 995
Image 995
Cisco Systems 3750E manual Configuring Hsrp Object Tracking, 40-17