Pcornel
Networking · Routing

First Hop Redundancy

Cheat sheet · https://pcornel.dk/topic.php?topic=641

Back to the Topic

Answer

A first-hop redundancy protocol lets two or more routers share one virtual gateway address. Hosts use the virtual IP as their default gateway; if the active router fails, another takes over the same address and virtual MAC. HSRP and GLBP are Cisco's; VRRP is the standard.

Remember

Group number, virtual IP and version must match on all routers in the group. The highest priority becomes active; pre-emption decides whether it takes the role back after recovering (off by default in HSRP, on in VRRP). Track the uplink so the router lowers its priority when its uplink fails.

First checks

  • show standby brief — HSRP groups: state, priority, active and standby router, virtual IP.
  • show vrrp brief — VRRP groups: state, priority, master address.
  • show standby / show vrrp — timers, pre-emption, tracking, virtual MAC.
  • show track — tracked objects and their state.
  • show ip arp <virtual ip> on a host-side device — the virtual MAC.

Commands

show standby brief
show standby
show ip arp <virtual-ip>
show standby vlan <id>
show vrrp brief
show vrrp interface vlan <id>
show glbp brief
show glbp vlan <id>
show track
show track <id>

Verify in this order

same group, virtual IP and version on all routers → hellos received → highest priority active → standby ready → tracking lowers priority on uplink failure → pre-emption restores the intended active router

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

First-hop redundancy boundary map

BoundaryHealthy evidenceFailure clueNext question
VLAN / SVIInterface and VLAN operationalGateway interface down/wrong VLANIs the local segment intact?
Virtual gatewayExpected VIP and roleVIP/group mismatch or no ownerDo both peers agree?
Peer redundancyActive + Standby presentStandby unknown/absentCan HSRP control traffic cross the segment?
Election policyPriority/preempt/tracking match intentWrong Active or no failbackIs preference changing as designed?
Layer 2 pathSTP/CAM leads to ActiveHairpin or stale virtual-MAC pathIs STP/FHRP aligned?
UpstreamActive has usable route/pathGateway alive but remote traffic failsWhat is the next Layer 3 boundary?

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=641

Confirmation

Confirm action

Continue?