Reference Guide

Object Tracking | 669
Figure 32-150. Command Example: track ip route metric threshold
2 Configure object tracking on the
metric of an IPv4 or IPv6 route.
track object-id
{ip route ip-address/prefix-len |
ipv6 route ipv6-address/prefix-len}
metric threshold [vrf vrf-name]
Valid object IDs are from 1 to 65535.
Enter an IPv4 address in dotted decimal format.Valid
IPv4 prefix lengths are from /0 to /32.
Enter an IPv6 address in X:X:X:X::X format. Valid
IPv6 prefix lengths are from /0 to /128.
(Optional) E-Series only: For an IPv4 route, you can
enter a VRF name.
CONFIGURATION
3 (Optional) Configure the time
delay used before communicating
a change in the UP and/or
DOWN status of a tracked route.
delay {[up seconds] [down seconds]}
Valid delay times are from 0 to 180 seconds. Default:
0.
OBJECT
TRACKING
4 (Optional) Identify the tracked
object with a text description.
description text
The text string can be up to 80 characters.
OBJECT
TRACKING
5 (Optional) Configure the metric
threshold for the UP and/or
DOWN routing status to be
tracked for the specified route.
threshold metric {[up number] [down number]}
Default UP threshold: 254. The routing state is UP if
the scaled route metric is less than or equal to the UP
threshold.
Default DOWN threshold: 255. The routing state is
DOWN if the scaled route metric is greater than or
equal to the DOWN threshold.
OBJECT
TRACKING
6 (Optional) Display the tracking
configuration.
show track object-id EXEC Privilege
Step Task Command Syntax Command Mode
FTOS(conf)#track 6 ip route 2.1.1.0/24 metric threshold
FTOS(conf-track-6)#delay down 20
FTOS(conf-track-6)#delay up 20
FTOS(conf-track-6)#description track ip route metric
FTOS(conf-track-6)#threshold metric down 40
FTOS(conf-track-6)#threshold metric up 40
FTOS(conf-track-6)#exit
FTOS(conf)#track 10 ip route 3.1.1.0/24 metric threshold vrf vrf1