Send document comments to nexus7k-docfeedback@cisco.com.
21-5
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 21 Configuring Object Tracking
Configuring Object Tracking
DETAILED STEPS
This example shows how to configure object tracking for the line protocol state on Ethernet 1/2:
switch# config t
switch(config)# track 1 interface ethernet 1/2 line-protocol
switch(config-track)# copy running-config startup-config
This example shows how to configure object tracking for the IPv4 routing state on Ethernet 1/2:
switch# config t
switch(config)# track 2 interface ethernet 1/2 ip routing
switch(config-track)# copy running-config startup-config
This example shows how to configure object tracking for the IPv6 routing state on Ethernet 1/2:
switch# config t
switch(config)# track 3 interface ethernet 1/2 ipv6 routing
switch(config-track)# copy running-config startup-config
Configuring Object Tracking for Route Reachability
You can configure Cisco NX-OS to track the existence and reachability of an IP route.
BEFORE YOU BEGIN
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1. config t
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
track
object-id
interface
interface-type
number
{{ip | ipv6} routing |
line-protocol}
Example:
switch(config)# track 1 interface
ethernet 1/2 line-protocol
switch(config-track#
Creates a tracked object for an interface and enters
tracking configuration mode. The object-id range is
from 1 to 500.
Step 3
show track
[
object-id
]
Example:
switch(config-track)# show track 1
(Optional) Displays object tracking information.
Step 4
copy running-config startup-config
Example:
switch(config-track)# copy
running-config startup-config
(Optional) Saves this configuration change.