↪️
ccie.nyquist.eu
  • Table of Contents
  • Layer 2 Technologies
    • Ethernet Switching
      • L2 Switch Operations
      • Spanning Tree
        • 802.1d – STP
        • 802.1w – RSTP
        • 802.1s – MSTP
      • VTP 101
      • Private VLANs
      • VLANs
      • EtherChannel 101
    • Layer 2 WAN Protocols
      • HDLC
        • HDLC 101
      • PPP
        • PPP 101
        • PPP Authentication - PAP
        • PPP Authentication – CHAP
        • PPP Authentication – EAP
        • PPP Multilink
        • PPPoFR – PPP over Frame Relay
        • PPPoE – PPP over Ethernet
      • Frame Relay
        • Frame Relay 101
        • Frame Relay 102
        • Frame Relay Encapsulations – IETF vs Cisco
        • Multilink Frame Relay
        • Frame Relay Switching
        • Routing over Frame Relay
      • Bridging
        • Bridging on a router
        • MTU 101
    • Wireless
      • Wireless Principles
      • Wireless Implementations
      • Wireless Roaming
      • Wireless Authentication
        • WPA2 PSK
        • WPA2 802.1X
  • IPv4
    • IPv4 Addressing
      • Backup Interfaces
      • FHRP 101
      • DHCP 101
      • DNS 101
      • ARP 101
      • IPv4 101
      • Tunnel Interfaces
        • GRE Tunnels
      • BFD – Bidirectional Forwarding Detection
    • IPv4 Routing
      • How the routing table is built
        • How CEF works
        • Routing Order of Operations
        • NSF – Non Stop Forwarding
      • RIP
        • RIP 101
      • EIGRP
        • EIGRP 101
        • EIGRP Metric
        • More EIGRP Features
      • OSPF
        • OSPF 101
        • OSPF Areas
        • OSPF LSAs
        • OSPF Mechanics
      • IS-IS
        • IS-IS 101
        • IS-IS Mechanics – CLNP
      • BGP
        • BGP 101
        • BGP Attributes
        • More BGP
      • Route Redistribution
      • Policy based Routing
      • PfR 101 – Perfromance Routing
      • ODR
  • IPv6
    • IPv6-101
    • IPv6 Routing
    • Interconnecting IPv6 and IPv4
  • MPLS
    • MPLS 101
    • MPLS L3 VPN
  • Multicast
    • Multicast 101
    • PIM 101
    • IGMP 101
    • Inter Domain Multicast
    • IPv6 Multicast
    • Multicast features on switches
  • Security
    • NAT 101
    • NAT for Overlapping Networks
    • ACLs 101
    • ACLs 102
    • Cisco IOS Firewall
    • Zone Based Firewall
    • AAA 101
    • Controlling CLI Access
    • Control Plane
    • Switch Security
      • Switchport Traffic Control
      • Switchport Port Security
      • DHCP Snooping and DAI
      • 802.1x
      • Switch ACLs
    • IPSec VPN 101
      • IKE / ISAKMP 101
      • IPSEC Crypto Maps 101
      • IPSEC VTI 101
      • DMVPN 101
    • EAP 101
  • Network Services
    • NTP 101
    • HTTP 101
    • File Transfer 101 – TFTP & FTP
    • WCCP 101
  • QoS
    • QoS 101
    • Classification and Marking
    • Congestion Management
      • Legacy Congestion Management
      • SPD – Selective Packet Discard
      • CBWFQ
      • IP RTP Priority
    • Congestion Avoidance – WRED
    • Policing and Shaping
      • CAR 101
    • Compression and LFI
      • Header and Payload Compression
      • LFI for MultiLink PPP
    • Frame Relay QoS
      • Per VC Frame Relay QoS
    • RSVP 101
    • Switching QoS
  • Network Optimization
    • NetFlow 101 – TNF – Traditional NetFlow
    • NetFlow 102 – FNF – Flexible NetFlow
    • IP SLA 101
    • IP Accounting 101
    • Logging 101
    • SNMP and RMON 101
    • Cisco CLI Tips and Tricks
    • AutoInstall
    • Enhanced Object Tracking
    • Troubleshooting 101
    • SPAN, RSPAN, ERSPAN
  • Network Architecture
    • Hierarchical Network Architecture
    • SD Access
    • SD WAN
Powered by GitBook
On this page
  • Define a tracked object
  • Interface
  • Route
  • IP SLA
  • Object Grouping
  • Delay
  • Monitor tracked objects

Was this helpful?

  1. Network Optimization

Enhanced Object Tracking

Object tracking is an IOS feature that allows separation between the object that is tracked and the action to be tacken when the status of that object changes. The objects to be tracked are identified by a NUMBER and different client applications (HSRP, GLBP, VRRP) can track the staus of these objects and take appropriate actions.

Define a tracked object

Interface

R(config)# track NUMBER interface INTERFACE {line-protocol| ip routing}

You can track an interface status based on it’s line-protocol (up or down), or on it’s ip routing status. The ip routing status is considered up when all of the following are up:

  • Interface line-protocol is up

  • The interface has an IP address (static or dynamic)

  • IP routing is enabled (on the interface)

Route

R(config)# track NUMBER ip route PREFIX MASK {reachability| metric threshold}
R(config-track)# threshold metric up UP-TH [down DOWN-TH]
! only available for metric threshold.
R(config-track)# ip vrf VRF-NAME
! the route will be looked up in the routing table of vrf VRF-NAME

Tracking ip route reachability will only look for the existence of the PREFIX/MASK combination in the routing table, while metric threshold will consider the tracked object to be up if the scaled metric of the route is less then the UP-TH, and down if it is more than the DOWN-TH. The value of the threshold si 0-255, so the metric of the route will be scaled when compared. The value used for scaling is configurable with the following command:

R(config)# track resolution PROTOCOL VALUE

IP SLA

R(config)# track NUMBER ip sla SLA-NUMBER {state|reachability}
! In older IOS versions:
R(config)# track NUMBER rtr SLA-NUMBER {state|reachability}

When tracking state, the object tracked will be “up” only if the IP SLA returns the code “OK”. All other return codes will translate to a “down” state. When tracking reachability, the object tracked will be “up” if the IP SLA returns the code “OK” or “over threshold”. All other codes translate to a “down state”

Object Grouping

You can define a combinations of tracked objects, known as lists. A list will also have a status that can be tracked, but it’s status will be based on the status of other tracked objects.

! Boolean list
R(config)# track NUMBER list boolean {and|or}
R(config-track)# object CHILD-NUMBER [not]

A boolean AND object is up if all child objects are up. A boolean OR object is UP if at least one child object si up.

! Weighted list
R(config)# track NUMBER list threshold weight
R(config-track)# object CHILD-NUMBER [weight WEIGHT]
R(config-track)# threshold weight [up UP-TH|down DOWN-TH]

When a child object is up, it’s WEIGHT is added to the Parent’s Weight. The parent object will be up when it’s weight will be higher than UP-TH

! Percentage list
R(config)# track NUMBER list threshold percentage
R(config-track)# object CHILD-NUMBER
R(config-track)# threshold percentage [up UP-TH|down DOWN-TH]

The parent object will be up when a percentage higher than UP-TH is up.

Delay

For all tracked objects you can define a timer that will delay the change of status:

R(config-track)# delay [up UP-DELAY|down DOWN-DELAY]

Monitor tracked objects

R# show track [NUMBER]
R# show track brief
PreviousAutoInstallNextTroubleshooting 101

Last updated 3 years ago

Was this helpful?