Network labs Docs Open simulator →

HSRP — interface tracking with priority decrement

Two routers share an HSRP virtual IP. R1 starts active (priority 110); R2 stands by (default priority 100). Configure interface tracking on R1's uplink so that if Gi0/1 (the uplink) goes down, R1's effective priority drops below R2's and standby takes over.

Open this lab in your browser →

Free · no install · no account

Scenario

HSRP failover by default tracks only the local interface on which the standby group is configured. To trigger failover on *upstream* faults (an uplink to the WAN going down on the active), use interface tracking: `` standby <group> track <track-id> decrement <N> ` A separate track <id> interface <name>` object monitors a different interface; when that interface goes line-protocol-down, the active's effective priority drops by N. If the new effective priority falls below the standby's priority — *and* preempt is configured — failover fires. In this lab R1 has both a LAN (Gi0/0, the HSRP segment) and a WAN uplink (Gi0/1). Track Gi0/1; decrement 20 on the active; force failover by shutting Gi0/1 down.

Topology

2 × router, 1 × switch · Cisco IOS-style

What you will do

  1. On R1, run show standby brief. Confirm R1 is Active for group 1; R2 should appear as Standby.

  2. On R1, define a track object for Gi0/1's line state: track 10 interface Gi0/1 line-protocol.

  3. On R1's Gi0/0, bind track 10 to HSRP group 1 with a decrement of 20: standby 1 track 10 decrement 20.

Open this lab in your browser →

More labs on this topic

This lab in other languages

HSRP — Interface-Tracking mit Prioritäts-DecrementHSRP — seguimiento de interfaz con decremento de prioridadHSRP — rastreamento de interface com decremento de prioridadeHSRP — suivi d'interface avec décrément de prioritéHSRP — priority decrement के साथ interface trackingHSRP — 接口跟踪与优先级递减HSRP — tracking di interfaccia con decremento di prioritàHSRP — プライオリティ減算を伴うインターフェーストラッキングHSRP — 우선순위 감소를 사용한 인터페이스 추적HSRP — отслеживание интерфейса с уменьшением приоритетаHSRP — öncelik azaltmalı arayüz takibiHSRP — theo dõi interface với giảm priority