Use it when hosts need a gateway that survives a router failure, or when failover between gateways fails.
FHRP
hosts → virtual gateway → active router → failover to standby
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show glbp briefShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
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
| Protocol | Notes |
|---|---|
| HSRP | Cisco; v2 supports 4096 groups and millisecond timers |
| VRRP | IETF standard; preemption on by default |
| GLBP | Cisco; load-shares one gateway across several routers |
| No FHRP | StackWise Virtual or a stack: one logical gateway (the campus design guide's preferred simplified distribution) |
HA tuning
| Setting | Purpose |
|---|---|
| Priority and preemption | Choose the normal active router; return after recovery |
| Preemption delay | Let routing converge after a reboot before taking over (guide: minimum 30, reload 60) |
| Object tracking | Lower priority when an uplink fails, so a router without upstream connectivity gives up the active role |
| Timers | Defaults give failover in up to 10 s; sub-second timers or BFD reduce it |
| STP alignment | Active 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.
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.
| Protocol | Standard | Load sharing |
|---|---|---|
| HSRP | Cisco | Per group (different groups per VLAN) |
| VRRP | IETF (RFC 5798) | Per group |
| GLBP | Cisco | Several 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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Quick lookup tables
FHRP · operational reference
Compact architecture/state/evidence reference for fast lookup.
| FHRP layer | Evidence |
|---|---|
| Role | Active/standby state |
| Virtual identity | IP/MAC ownership |
| Forwarding | Active RIB/CEF |
| Service | Client path test |