Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

First Hop Redundancy

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

When to use this

Use it to give hosts a gateway that survives a router failure, and when failover does not happen or the wrong router is active.

First 30 seconds

1. show standby brief (or show vrrp brief) on both routers — one active/master, one standby/backup?

2. Both active → they do not hear each other: VLAN, group number, authentication, version.

3. Wrong router active → priorities and pre-emption.

4. No failover when the uplink fails → tracking missing (show track).

5. Hosts use the virtual IP as gateway?

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Treating two configured gateways as evidence of high availability.
  • Testing only the virtual IP and not real user traffic through the router.
  • Ignoring STP root placement and creating avoidable hairpin paths.
  • Tracking the local SVI while the real failure is the uplink.
  • Using different group numbers, versions or virtual IPs on the two routers.
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
Key commandip address 10.10.10.2 255.255.255.0
Scope / prerequisiteUse it to give hosts a gateway that survives a router failure, and when failover does not happen or the wrong router is…
What next?3 suggested next steps
Child topics (this level)2
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

3 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 Verification commands for HSRP, VRRP and GLBP Verify boundary
ProtocolSummaryDetailShows
HSRPshow standby briefshow standby vlan <id>Role, priority, preempt, virtual IP, active/standby peer
VRRPshow vrrp briefshow vrrp interface vlan <id>Master/backup, priority, master address
GLBPshow glbp briefshow glbp vlan <id>AVG and the AVF forwarding for each virtual MAC
Trackingshow trackshow track <id>Object state and the priority decrement it causes

Then test from a host: ping the virtual IP, check the host ARP entry for the virtual MAC, and fail the active router to confirm takeover.

Step 2 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
Both routers Activeshow standby briefOne Active, one Standby per groupHellos not received: VLAN, ACL, group number or authentication mismatch
Wrong router Activeshow standbyPriority, preempt, tracked object statepreempt missing or tracking not decrementing
Hosts lose the gateway on failovershow ip arp <virtual-ip> on a host-side deviceVirtual MAC, not a real router MACHost configured with a real IP as gateway
Failover slowshow standbyHello/hold timersTune timers or use BFD; check STP convergence on the VLAN
Step 3 Where it fails Narrow the fault

Typical failure order: VLAN not carried to both routers (both become Active) → group number, version or authentication mismatch (peers ignore each other's hellos) → wrong router Active because preempt or tracking is missing → tracking points to the local SVI instead of the real uplink → FHRP correct but STP root on the other distribution switch, so traffic crosses the inter-switch link → upstream routing does not return traffic to the new Active router.

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key 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.
ReferenceWhat it is1 section · depth on demand

What it is

A First Hop Redundancy Protocol gives hosts one virtual default-gateway IP and MAC that is owned by whichever router is currently active. Hosts keep the same gateway when a router fails.

HSRPVRRPGLBP
StandardCiscoRFC 5798Cisco
RolesActive / StandbyMaster / BackupAVG / AVF
Virtual MAC0000.0c07.acXX (v1), 0000.0c9f.fXXX (v2)0000.5e00.01XXOne per AVF
Preemption defaultOffOnOff (AVG)
Load sharingPer group/VLANPer group/VLANWithin one group

The router with the highest priority (default 100) becomes active; ties go to the highest IP address.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Hosts usually have one static default gateway. Without an FHRP, losing that router cuts the whole subnet off even when a second router is available. With HSRP, VRRP or GLBP, failover takes a few seconds (less with tuned timers or BFD) and requires no change on the hosts.

ReferenceHow it works1 section · depth on demand

How first-hop redundancy works

Hosts keep one default gateway address while multiple Layer 3 devices participate in a redundancy protocol. The control protocol elects the owner of the virtual identity. During a gateway failure, another device assumes that identity and forwarding responsibility. The surrounding campus design must still deliver Layer 2 frames to that new owner and provide a usable upstream route.

ReferenceImportant terms & boundaries3 sections · depth on demand

Key points

  • Hosts must point to the virtual IP, not to a router's real address.
  • Without preempt, a recovered higher-priority HSRP router does not take back the active role.
  • Interface tracking lowers priority when an uplink fails, so the active role moves to a router that can still forward.
  • Align the active FHRP router with the STP root for the same VLAN, or traffic crosses the inter-switch link twice.
  • FHRP protects the first hop only; return traffic still depends on routing.

In depth

First-hop redundancy gives hosts one gateway address that survives a router failure

Hosts are normally configured with a single default gateway. A first-hop redundancy protocol (FHRP) lets two or more routers share a virtual IP and virtual MAC address. One router forwards for the virtual address, and another takes over if it fails, without any change on the hosts.

HSRPVRRP
OriginCiscoIETF standard (VRRPv3 in RFC 5798)
RolesActive, standbyMaster, backup
IPv4 multicast224.0.0.2 (v1), 224.0.0.102 (v2)224.0.0.18, IP protocol 112
Virtual MAC (IPv4)0000.0C07.ACxx (v1), 0000.0C9F.Fxxx (v2)0000.5E00.01xx
Default priority100100
Preemption by defaultNoYes
Can use a real interface IP as the virtual IPNoYes (the owner)

The HSRP values come from Cisco's IOS XE HSRP guide and the VRRP values from Cisco's VRRPv3 guide. Cisco's VRRPv3 example uses the virtual MAC 0000.5E00.0101 for group 1.

C9300-A(config)# interface Vlan20
C9300-A(config-if)# ip address 10.20.0.2 255.255.255.0
C9300-A(config-if)# standby version 2
C9300-A(config-if)# standby 20 ip 10.20.0.1
C9300-A(config-if)# standby 20 priority 110
C9300-A(config-if)# standby 20 preempt
C9300-A(config-if)# standby 20 track 1 decrement 20
C9300-A# show standby brief
                     P indicates configured to preempt.
                     |
Interface   Grp  Pri P State   Active          Standby         Virtual IP
Vl20        20   110 P Active  local           10.20.0.3       10.20.0.1

Design points

PointRecommendation
Align with STPThe FHRP active router should also be the STP root for that VLAN, so traffic doesn't cross the inter-switch link
TrackingTrack the uplink so a router with no upstream path gives up the active role
Preemption delayLet routing converge after a reboot before taking over
Load sharingAlternate active routers per VLAN

What FHRP doesn't cover

FHRP protects only the first hop. Upstream redundancy still depends on routing. With StackWise Virtual or a stack acting as one gateway, an FHRP isn't needed at all.

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.

VRRP details and tracking

VRRP is the standard first-hop redundancy protocol. The Master advertises once a second by default, and the Backups take over when advertisements stop for the Master_Down_Interval. Priority 255 belongs to the router that owns the virtual address, the default is 100, and pre-emption is on unless you disable it.

VRRP details (RFC 5798)

ItemValue
IP protocol112
TTL / hop limitMust be 255; others are discarded
Priority 0The Master is giving up; Backups take over immediately
Master_Down_Interval3 × advertisement interval + skew time
dist1(config)# interface Vlan110
dist1(config-if)# vrrp 110 address-family ipv4
dist1(config-if-vrrp)# address 10.110.0.1 primary
dist1(config-if-vrrp)# priority 110
dist1(config-if-vrrp)# track 10 decrement 20
dist1# show vrrp brief
  Interface          Grp  A-F Pri  Time Own Pre State   Master addr/Group addr
  Vl110              110 IPv4 110     0  N   Y  MASTER  10.110.0.2(local) 10.110.0.1
dist2# show vrrp brief | include Vl110
  Vl110              110 IPv4 100  3609  N   Y  BACKUP  10.110.0.2 10.110.0.1

Tracking

If the Master's uplink fails, it should give up the gateway role. Tracking an uplink or an IP SLA object lowers the priority (here by 20, to 90), so the Backup at 100 pre-empts. Without tracking, the Master keeps forwarding into a dead uplink.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration example: HSRP v2 (Cisco IOS XE)

track 10 interface GigabitEthernet0/0/0 line-protocol
!
interface Vlan10
 ip address 10.10.10.2 255.255.255.0
 standby version 2
 standby 10 ip 10.10.10.1
 standby 10 priority 110
 standby 10 preempt
 standby 10 track 10 decrement 20

The peer uses 10.10.10.3 with the default priority of 100. If the uplink fails, this router drops to 90 and the peer takes over. 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.
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. 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

First-hop redundancy boundary map

Separate gateway protocol state from the surrounding availability path

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?

HSRP vs VRRP

Fast role and protocol comparison for the two FHRP branches.

PropertyHSRPVRRP
Primary terminologyActive / StandbyMaster / Backup
Standards positionCisco-orientedStandards-based
Control transportUDP 1985IP protocol 112
Preferred valueHigher priorityHigher priority
Common non-owner default100100
Host-facing identityVirtual IP + virtual MACVirtual IP + virtual MAC
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

FHRP config skeleton

Simple HSRP-style virtual gateway reference

interface Vlan20
 ip address 10.20.0.2 255.255.255.0
 standby 20 ip 10.20.0.1
 standby 20 priority 110
 standby 20 preempt

Verify virtual IP, priority and active/standby ownership. Then separately verify STP path alignment and upstream routing.

Depth when you need it

Deep reference

Healthy vs suspicious evidence

Reading show standby brief

Illustrative output, not captured Evidence:

Interface   Grp  Pri P State    Active          Standby         Virtual IP
Vl10        10   110 P Active   local           10.10.10.3      10.10.10.1

P means preempt is configured. local under Active means this router forwards for the virtual IP; the Standby column shows the peer that takes over.

Confirmation

Confirm action

Continue?