Use it when the design or fault is specifically about the dependency mechanism that changes effective HSRP priority when monitored interfaces or track objects indicate loss of useful forwarding capability. Stay on that boundary until configuration intent, live control/security state and the adjacent dependency agree.
Tracking · HSRP
HSRP tracking lowers a router's priority when something it depends on fails, such as an uplink or a route (standby 1 track 10 decrement 20). With preemption on the peer, this moves the Active role to a router that still has a working path.
tracked object down → priority decremented → peer preempts → new Active
Compare decrement mathematics, peer priority/preempt and intended failure policy.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show trackShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show trackShowDisplay tracked objects and their state.
Use when: Use this command at the IP SLA + Object Tracking boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Separate transport reachability, probe result, track state and the feature that consumes the track object.
Cisco IOS / IOS XE · mixed · verifiesshow ip sla statistics [id]ShowInspect active probe results.
Use when: Active measurement verification.
IOS/IOS XE · mixed · verifiesVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
show track
show standby vlan 10
show track lists each tracked object, what it watches and whether it is Up or Down. In show standby, the line Track object 1 state Up decrement 20 shows what the group reacts to and by how much, and the Priority line shows the current value next to the configured one.
Known-good: the object watches something that really represents the upstream path, the decrement brings the priority below the other router's, and the other router has preemption enabled.
Step 2 Verification and output interpretation Verify boundary
Verify the underlying track object independently, then inspect its effect on HSRP effective priority and role. Correlate timestamps: track down → priority decrement → election/preemption decision → virtual MAC movement. If HSRP does not change role, determine whether the decrement was large enough and whether preemption/election conditions permit takeover. If the track object reports up, verify what it actually measured rather than assuming end-to-end health. After a transition, confirm upstream routing and representative traffic on the new Active router.
Step 3 Verification & troubleshooting Narrow the fault
1. Identify the dependency that should trigger gateway movement.
2. Verify the track object itself changes state during the intended failure.
3. Compare HSRP priority before and after the decrement.
4. Confirm the peer becomes Active when its effective priority is better.
5. Verify upstream and user traffic after both failure and recovery.
Step 4 Failure signatures and troubleshooting branches Narrow the fault
- The uplink failed and the router is still Active. Nothing is tracked, the decrement is too small (110 − 10 = 100 only ties with a peer at 100), or the peer lacks preemption.
- The priority drops but the role stays. Same causes: decrement not enough, or no preemption on the peer.
- The tracked interface is up but the path beyond it is broken. Track a route or an IP SLA probe instead of the line protocol.
- A flapping object makes the role flap. Add a delay to the track object.
- Both routers track the same failing thing. Both lower their priority and nothing changes.
Step 5 When the problem is really fixed Narrow the fault
- The tracked object goes Down when the upstream path really fails, and Up when it returns.
- With the object down, the current priority is below the peer's and the peer becomes Active.
- When the object recovers, the role returns as the preemption settings intend.
- A flap of the tracked object does not cause repeated role changes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Do not infer service health from one command. For Tracking, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.
show track— tracked object stateshow standby <interface> <group>— Track object <n> state and decrementshow ip sla statistics— if tracking an IP SLA
ReferenceWhat it is1 section · depth on demand
ReferenceWhy it matters1 section · depth on demand
Why it matters
Use tracking when an HSRP gateway can remain locally up while losing the upstream path that makes it useful as the default gateway.
ReferenceImportant terms & boundaries6 sections · depth on demand
Key points
- Interface-up HSRP alone cannot detect every upstream failure
- The decrement must be large enough to change the election relative to the peer
- The peer normally needs suitable preemption behavior to take over based on the new priority
- Track the dependency that represents service health; avoid tracking an unrelated signal
- Validate failure and recovery transitions, not only the healthy-state configuration.
In depth
Tracking lowers HSRP priority when something the gateway depends on fails
Cisco's preempt-and-track document describes standby track <object> decrement <N>: when the tracked object goes down, the group's priority is reduced by N. Tracking is optional, and it's used to react to conditions such as an uplink failing. Each tracked object has its own decrement, and decrements add up.
C9300-A(config)# track 10 interface TenGigabitEthernet1/1/1 line-protocol
C9300-A(config)# track 11 ip route 0.0.0.0 0.0.0.0 reachability
C9300-A(config)# interface Vlan20
C9300-A(config-if)# standby 20 priority 110
C9300-A(config-if)# standby 20 preempt delay minimum 60
C9300-A(config-if)# standby 20 track 10 decrement 20
C9300-A(config-if)# standby 20 track 11 decrement 20
C9300-A# show track brief
Track Type Instance Parameter State Last Change
10 interface TenGigabitEthernet1/1/1 line-protocol Up 2d01h
11 ip route 0.0.0.0/0 reachability Up 2d01h
C9300-A# show standby Vlan20 | include Track|Priority
Priority 110 (configured 110)
Track object 10 state Up decrement 20
Track object 11 state Up decrement 20
Choosing what to track
| Object | Detects |
|---|---|
interface … line-protocol | Uplink down |
ip route … reachability | Route to the core or default route lost (covers indirect failures) |
| IP SLA object | Reachability of a specific next hop or service |
List of objects (track N list boolean or) | Combined conditions |
Route or IP SLA tracking catches failures beyond the directly connected link. Interface tracking only sees the local link.
Requirements for tracking to cause failover
| Requirement | Reason |
|---|---|
| Preempt on the backup | The FAQ notes preempt is needed for tracking-based failover |
| Decrement large enough | The effective priority must fall below the backup's |
| The backup must not track the same failure | Or both drop together and nothing changes |
Test tracking by shutting the tracked uplink in a maintenance window and watching show standby brief on both switches.
Documented example, not captured output.
Quick reference
HSRP tracking lowers a router's priority when a tracked object fails — an uplink interface, a route or an IP SLA probe — so a router that has lost its upstream path stops being Active.
track 10 interface Gi1/0/49 line-protocol
track 11 ip sla 10 reachability
interface Vlan20
standby 20 priority 110
standby 20 preempt
standby 20 track 10 decrement 20
standby 20 track 11 decrement 20
Documented example, not captured output.
Choose the decrement so the reduced priority falls below the peer's priority (110 − 20 = 90 < 100).
Mechanics and state ownership
HSRP tracking links gateway election to another health signal so a router can relinquish Active preference when an important dependency fails. Traditional interface tracking or object tracking can decrement HSRP priority; the decrement must be large enough relative to peer priority and preemption policy to create the intended election change. Tracking should represent a meaningful forwarding dependency, not every incidental interface. A track object being Down is only one input: verify why it is Down, whether the decrement is applied to the intended HSRP group, whether the peer then wins, and whether the new Active router truly has the usable path the design expects.
State model and technical mechanics
Tracking lets HSRP react to more than loss of the client-facing interface. A tracked interface, IP SLA/object track or other supported object can decrement the router’s effective HSRP priority when a dependency becomes unavailable. If the peer then has the better effective priority and election/preemption conditions allow it, gateway ownership can move to the router with the healthier path. Tracking therefore connects external state into HSRP role logic, but HSRP does not understand the dependency semantically—it only sees the track object state and configured decrement.
Limits and common misconceptions
Tracking is only as meaningful as the tracked signal. Interface line protocol up does not show upstream reachability, and a successful IP SLA probe does not show every application path. Tracking also does not synchronize firewall/NAT/session state. A poorly chosen object can make HSRP less stable or move traffic away from a healthy router. Treat tracking as deterministic input to role selection, not as an all-purpose health engine.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Track dependencies that actually represent the router’s ability to serve as default gateway, such as a critical upstream path or a validated object that reflects service reachability. Size decrements so the intended peer becomes preferred when the object fails. Avoid tracking overly noisy or irrelevant conditions, because flapping state can cause repeated gateway transitions. For IP SLA-based tracking, ensure the probe target and source meaningfully represent the desired failure point; a reachable probe target may not represent the application, while an overly remote target may trigger failover for failures outside the router’s control.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → First Hop Redundancy → HSRP → Tracking. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Quick lookup tables
Tracking · technical reference
Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.
| Item | Meaning |
|---|---|
| Track object | External state input |
| Decrement | Reduces effective HSRP priority |
| Role effect | Depends on peer priority/preemption |
| Design risk | Bad signal can cause unnecessary failover |
Tracking operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for Tracking | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches the dependency mechanism that changes effective HSRP priority when monitored interfaces or track objects indicate loss of useful forwarding capability design | Configuration differs from design/peer | Compare effective configuration |
| Control/security state | Stable expected neighbor/database/binding/election state | track object down but decrement too small to trigger failover, wrong object attached to the group, tracking a non-critical signal that causes needless gateway churn, or HSRP successfully failing over to a peer whose alternate path is also unusable | Inspect protocol/security detail and adjacent state |
| Forwarding | Expected Layer-2 or RIB/FIB/gateway path | Control state exists but traffic path disagrees | MAC/ARP/RIB/FIB/CEF proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or protection disabled | Regression test |
Deep reference
Additional depth
Choosing a tracking boundary
Track a dependency that represents whether the gateway can still deliver useful service. A local uplink interface can be sufficient in a simple design, while object tracking may represent a more meaningful reachability condition. The HSRP decrement must be large enough to make the healthy peer preferable under failure.