Configuring An Object Track List With A Boolean Expression - Cisco Nexus 7000 Series Configuration Manual

Nx-os unicast routing configuration
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring Object Tracking
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 7 k - d o c f e e d b a c k @ c i s c o . c o m .
2.
3.
4.
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
track object-id {ip | ipv6} route
prefix/length reachability
Example:
switch(config)# track 2 ip route
192.0.2.0/8 reachability
switch(config-track)#
Step 3
show track [ object-id ]
Example:
switch(config-track)# show track 1
Step 4
copy running-config startup-config
Example:
switch(config-track)# copy
running-config startup-config
This example shows how to configure object tracking for an IPv4 route in the default VRF.
switch# config t
switch(config)# track 4 ip route 192.0.2.0/8 reachability
switch(config-track)# copy running-config startup-config
This example shows how to configure object tracking for an IPv6 route in the default VRF.
switch# config t
switch(config)# track 5 ipv6 route 10::10/128 reachability
switch(config-track)# copy running-config startup-config

Configuring an Object Track List with a Boolean Expression

You can configure an object track list that contains multiple tracked objects. A tracked list contains one
or more objects. The Boolean expression enables two types of calculation by using either "and" or "or"
operators. For example, when tracking two interfaces using the "and" operator, up means that both
interfaces are up, and down means that either interface is down.
BEFORE YOU BEGIN
Ensure that you are in the correct VDC (or use the switchto vdc command).
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
21-6
track object-id {ip | ipv6} route prefix/length reachability
show track [object-id]
copy running-config startup-config
Chapter 21
Purpose
Enters configuration mode.
Creates a tracked object for a route and enters tracking
configuration mode. The object-id range is from 1 to
500. The prefix format for IP is A.B.C.D/length, where
the length range is from 1 to 32. The prefix format for
IPv6 is A:B::C:D/length, where the length range is
from 1 to 128.
(Optional) Displays object tracking information.
(Optional) Saves this configuration change.
Configuring Object Tracking
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents