Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Tracking · HSRP

Direct answer

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.

When to use this

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.

First 30 seconds

1. Tracking lowers HSRP priority when an uplink or reachability test fails.

2. Decrement must drop priority below the peer's.

3. Preempt must be enabled on the peer.

4. Track IP SLA reachability rather than just line protocol where possible.

5. Test by failing the tracked object.

Operational verification

tracked object down → priority decremented → peer preempts → new Active

Evidence · next step

Compare decrement mathematics, peer priority/preempt and intended failure policy.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE · IOS/IOS XE
Key commandshow track
Scope / prerequisiteUse it when the design or fault is specifically about the dependency mechanism that changes effective HSRP priority whe…
Show · 2
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

Do not infer service health from one command. For Tracking, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.

Key checks
  • show track — tracked object state
  • show standby <interface> <group> — Track object <n> state and decrement
  • show ip sla statistics — if tracking an IP SLA
ReferenceWhat it is1 section · depth on demand

What it is

HSRP tracking ties gateway preference to another operational dependency, such as an object representing an uplink or reachability condition. When the tracked object fails, HSRP can decrement priority so the peer with the better remaining path becomes Active.

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

ObjectDetects
interface … line-protocolUplink down
ip route … reachabilityRoute to the core or default route lost (covers indirect failures)
IP SLA objectReachability 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

RequirementReason
Preempt on the backupThe FAQ notes preempt is needed for tracking-based failover
Decrement large enoughThe effective priority must fall below the backup's
The backup must not track the same failureOr 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Embedded reference data

Quick lookup tables

Tracking · technical reference

Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.

ItemMeaning
Track objectExternal state input
DecrementReduces effective HSRP priority
Role effectDepends on peer priority/preemption
Design riskBad signal can cause unnecessary failover

Tracking operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for TrackingSuspicious signatureNext proof
IntentMatches the dependency mechanism that changes effective HSRP priority when monitored interfaces or track objects indicate loss of useful forwarding capability designConfiguration differs from design/peerCompare effective configuration
Control/security stateStable expected neighbor/database/binding/election statetrack 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 unusableInspect protocol/security detail and adjacent state
ForwardingExpected Layer-2 or RIB/FIB/gateway pathControl state exists but traffic path disagreesMAC/ARP/RIB/FIB/CEF proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test
Depth when you need it

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.

Confirmation

Confirm action

Continue?