Troubleshooting notes · First-hop redundancy
HSRP doesn't fail over when the uplink goes down
The active HSRP router loses its uplink but stays Active, and the LAN loses access. How the tracking decrement and preempt work together, with real output from Cisco IOS XE 17.18.
The symptom
The active router's WAN uplink fails. Interface tracking is configured, yet the router stays Active and users lose access until the uplink comes back.
R1(config)# interface Ethernet0/1
R1(config-if)# shutdown
R1# show standby brief | include Et0/0
Et0/0 10 105 P Active local 10.1.10.3 10.1.10.1
R1# show track 1 | include Line|Interface
Interface Ethernet0/1 line-protocol
Line protocol is Down ((hw admin-down))
PC1> ping 192.0.2.1
*10.1.10.2 icmp_seq=5 ttl=255 time=1.607 ms (ICMP type:3, code:1, Destination host unreachable)
Why it happens: two separate settings
1. The decrement is too small. R1 has priority 110 and R2 100. When the uplink goes down, tracking lowers R1's priority by only 5, to 105, which is still higher than R2's. The decrement must take the active router below the standby router's priority.
R1(config)# interface Ethernet0/0
R1(config-if)# standby 10 track 1 decrement 20
2. The standby router can't preempt. With a decrement of 20, R1 drops to 90, but R2 still doesn't take over:
R1# show standby brief | include Et0/0
Et0/0 10 90 P Active local 10.1.10.3 10.1.10.1
R2# show standby brief | include Et0/0
Et0/0 10 100 Standby 10.1.10.2 local 10.1.10.1
Without preempt, a router with a higher priority waits until the Active router fails completely. It doesn't take over just because its priority is now higher.
R2(config)# interface Ethernet0/0
R2(config-if)# standby 10 preempt
Check it
Shut the uplink again. R2 should become Active, and traffic should flow:
R2# show standby brief | include Et0/0
Et0/0 10 100 P Active local 10.1.10.2 10.1.10.1
R2# show logging | include STATECHANGE
%HSRP-5-STATECHANGE: Ethernet0/0 Grp 10 state Standby -> Active
PC1> ping 192.0.2.1
84 bytes from 192.0.2.1 icmp_seq=4 ttl=254 time=1.940 ms
(R1 Ethernet0/1 back up)
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 1 FULL/DR 00:00:39 10.0.13.3 Ethernet0/1
R2# show standby brief | include Et0/0
Et0/0 10 100 P Standby 10.1.10.2 local 10.1.10.1
Practise this fault
This fault is in ENCOR Lab 20, one of the free labs: a ready-made GNS3 project where you find and fix it yourself, with the tested solution. Get it with 14 more free labs, by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.