Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

FHRP

Direct answer

First-hop redundancy protocols (HSRP, VRRP, GLBP) give hosts a virtual default-gateway address shared by two or more routers, so the gateway survives the failure of one router.

When to use this

Use it when hosts need a gateway that survives a router failure, or when failover between gateways fails.

First 30 seconds

1. FHRPs give hosts a redundant default gateway.

2. HSRP/VRRP active/standby; GLBP load-balances.

3. Align with STP root.

4. Use tracking and preempt.

5. Test failover.

Operational verification

hosts → virtual gateway → active router → failover to standby

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
Key commandshow glbp brief
Scope / prerequisiteUse it when hosts need a gateway that survives a router failure, or when failover between gateways fails.
Show · 1
What next?3 suggested next steps
Catalog command links1
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.

2 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 and output interpretation Verify boundary

Verify role/state, virtual IP/MAC ownership, client ARP/ND and switch MAC learning, then show the active router has valid RIB/CEF and an upstream path. Controlled failover should confirm client continuity. Verification should include both steady-state symmetry and controlled failure evidence. Confirm which device/link is active, what backup state is ready, which prefixes and forwarding entries exist, what tracked objects influence role, and how state changes during a bounded failover. Measure detection, convergence and traffic impact independently. A successful role change is useful evidence, but it should be followed by route/CEF and service checks on the surviving path.

Step 2 Verification & troubleshooting Narrow the fault

1. Map service dependencies and failure domains.

2. Remove shared-fate assumptions.

3. Verify standby readiness and capacity.

4. Measure detection/convergence/session impact.

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
Key points
  • Redundancy is not availability until failure detection, convergence and capacity are proven
  • Active/active and active/standby designs have different state and load assumptions
  • Stateful switchover preserves selected state, not necessarily every protocol/session
  • Shared fate (power, conduit, control plane, software, provider) can invalidate apparent duplication
  • Define RTO/RPO/SLO and test failure plus recovery.
Key checks
  • show standby brief — HSRP
  • show vrrp brief — VRRP
  • show glbp brief — GLBP
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

FHRP in high-availability design

Hosts have one default gateway address, so the gateway must survive a device failure. A first-hop redundancy protocol shares a virtual IP and MAC between two or more routers. Cisco's IOS XE HSRP guide documents the defaults that matter for HA design: priority 100, preemption off, and preemption delay recommendations of minimum 30 and reload 60.

FHRP choices

ProtocolNotes
HSRPCisco; v2 supports 4096 groups and millisecond timers
VRRPIETF standard; preemption on by default
GLBPCisco; load-shares one gateway across several routers
No FHRPStackWise Virtual or a stack: one logical gateway (the campus design guide's preferred simplified distribution)

HA tuning

SettingPurpose
Priority and preemptionChoose the normal active router; return after recovery
Preemption delayLet routing converge after a reboot before taking over (guide: minimum 30, reload 60)
Object trackingLower priority when an uplink fails, so a router without upstream connectivity gives up the active role
TimersDefaults give failover in up to 10 s; sub-second timers or BFD reduce it
STP alignmentActive router per VLAN should also be the STP root
DIST1(config)# track 1 interface TenGigabitEthernet1/0/49 line-protocol
DIST1(config)# interface Vlan20
DIST1(config-if)# standby version 2
DIST1(config-if)# standby 20 ip 10.20.0.1
DIST1(config-if)# standby 20 priority 110
DIST1(config-if)# standby 20 preempt delay minimum 30 reload 60
DIST1(config-if)# standby 20 timers msec 250 msec 750
DIST1(config-if)# standby 20 track 1 decrement 20
DIST1# show standby brief
Interface   Grp  Pri P State   Active          Standby         Virtual IP
Vl20        20   110 P Active  local           10.20.0.3       10.20.0.1

Load sharing

Alternate the active router per VLAN (odd VLANs on one, even on the other), together with matching STP root placement, so both distribution switches carry traffic.

When to avoid FHRP

With StackWise Virtual or a stack as the gateway, the gateway is one logical device and no FHRP is needed. Routed access designs place gateways on the access switch, which also removes the FHRP from the distribution layer.

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

FHRPs (First Hop Redundancy Protocols) give hosts a virtual default gateway shared by two or more routers. Hosts keep using the same gateway IP and MAC while the routers decide which one forwards.

ProtocolStandardLoad sharing
HSRPCiscoPer group (different groups per VLAN)
VRRPIETF (RFC 5798)Per group
GLBPCiscoSeveral forwarders in one group

Align the FHRP active router with the STP root for each VLAN so traffic does not cross the inter-switch link unnecessarily.

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

Architecture/protocol mechanics and state model

First-hop redundancy protocols coordinate ownership of a virtual IP and associated forwarding identity across multiple routers. Clients normally keep the same gateway address while the active/forwarding device can change. The useful chain is protocol role → virtual IP/MAC ownership → access-switch forwarding → active router RIB/CEF → upstream path. High availability is the combination of independent components, failure detection, state convergence and restoration of useful forwarding. Duplicate links or devices only add resilience when they do not share the same failure dependency and when control-plane/data-plane state can move to the surviving path. Detection time, protocol convergence, FHRP role, route programming and application recovery occur at different layers and can complete at different times. Treat redundancy as a state machine, not as a drawing with two boxes.

Limits and common misconceptions

An Active/Master role only shows gateway ownership. It does not show upstream routing, DNS, security services or application state. Redundancy is not the same as availability. Two links in the same conduit, two devices using the same upstream, or two gateways dependent on one control service can fail together. Likewise, SSO or FHRP continuity does not guarantee stateful preservation for every protocol or application. State the precise failure domain and preserved state so HA claims remain technically bounded and usable as reference context.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Align FHRP priority/preemption/tracking with actual path quality, keep VLAN and gateway configuration symmetrical where required, and avoid tracking objects that do not represent the service dependency users need. Configuration should define the intended active/standby or active/active behavior, the failure signals that matter, timers, tracking, routing/FHRP interactions and the minimum surviving capacity. Redundant components should have intentionally separated power, transport, control and management dependencies where feasible. Avoid aggressive timer tuning without understanding false-positive risk and do not assume stateful control-plane switchover also preserves every forwarding, NAT, firewall or application session.

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 Architecture → Enterprise Network Design → High Availability → FHRP. 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

FHRP · operational reference

Compact architecture/state/evidence reference for fast lookup.

FHRP layerEvidence
RoleActive/standby state
Virtual identityIP/MAC ownership
ForwardingActive RIB/CEF
ServiceClient path test
Confirmation

Confirm action

Continue?