Reference Guide
Interface tracking
You can create an object that tracks the line-protocol state of a Layer 2 or Layer 3 interface, and monitors its operational status (Up or
Down). You can congure up to 500 objects. Each object is assigned a unique ID. The no version of this command deletes the tracked
object from an interface.
When the link-level status goes down, the tracked resource status is also considered Down. If the link-level status goes up, the tracked
resource status is also considered Up. For logical interfaces (port-channels or VLANs), the link-protocol status is considered to be Up if any
physical interface under the logical interface is Up.
The list of available interfaces include:
• ethernet — Physical interface
• port-channel — Port-channel identier
• VLAN — VLAN identifer
• Loopback — Loopback interface identier
• mgmt — Management interface
You can create an object that tracks the Layer 3 state of an interface:
• Layer 3 status of an interface is Up only if the Layer 2 interface status is UP and the interface has a valid IP address.
• Layer 3 status of an interface is Down when the Layer 2 status is Down or you remove the IP address from the routing table.
1 Congure object tracking in CONFIGURATION mode from 1 to 500.
track object-id
2 (Optional) Enter the interface object tracking on the line-protocol state of a Layer 2 interface in OBJECT TRACKING mode.
interface interface line-protocol
3 (Optional) Congure the time delay used before communicating a change to the status of a tracked interface in OBJECT TRACKING
mode from 0 to 80 seconds; default 0.
delay [up seconds] [down seconds]
4 (Optional) View the tracked object information in EXEC mode.
show track object-id
5 (Optional) View all interface object information in EXEC mode.
show track interface
6 (Optional) View all IPv4 or IPv6 next-hop object information in EXEC mode.
show track [ip | ipv6]
Congure object tracking
OS10(config)# track 1
OS10(conf-track-1)# interface ethernet 1/1/1 line-protocol
OS10(conf-track-1)# delay up 20
OS10(conf-track-1)# delay down 10
OS10(conf-track-1)# do commit
OS10(conf-track-1)# do show track 1
Interface ethernet1/1/1 line-protocol
Line protocol is UP
1 changes, Last change 2017-04-26T06:41:36Z
Host tracking
If you congure an IP host as a tracked object, the entry or the next-hop address in the address resolution protocol (ARP) cache
determines the Up or Down state of the route.
310
Layer 3