Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

HSRP & VRRP Reference

Direct answer

HSRP and VRRP let two or more routers share one virtual gateway address. One router answers for it; if that router fails, another takes over and the hosts notice nothing.

First checks

HSRP and VRRP checks

Cisco IOS / IOS XE. Hosts must use the virtual IP as default gateway. HSRP does not preempt by default; VRRP does.

Observed statePossible causeCommandObservation and next check
Both routers Active / MasterHellos not received: Layer 2 path, ACL, group or authentication mismatchshow standby brief

One Active and one Standby per group (VRRP: show vrrp brief, one Master).

Next: Compare group number, virtual IP, version and authentication; check the VLAN between the routers.

Wrong router is ActivePriority or preemption not set as intendedshow standby <interface> <group>

Priority of both routers and whether preemption is enabled.

Next: Set a higher priority and standby preempt on the intended router.

Hosts cannot reach the gatewayHosts use a real interface IP, or the virtual IP differsshow standby brief

Virtual IP matches the hosts' default gateway.

Next: Check the host gateway and show ip arp <virtual-ip> for the virtual MAC.

No failover when the uplink failsUplink not trackedshow standby <interface> <group>

A tracked object with a decrement large enough to drop below the peer.

Next: Add track with a decrement, and preempt on the peer so it takes over.

State changes repeatedlyPacket loss between routers or very short timersshow logging | include HSRP|VRRP

%HSRP-5-STATECHANGE or VRRP state messages with timestamps.

Next: Check the link and interface errors between the routers before tuning timers.

Example output and interpretation

Illustrative output · not captured Evidence

Router# show standby brief
                     P indicates configured to preempt.
                     |
Interface   Grp  Pri P State   Active          Standby         Virtual IP
Vl10        10   110 P Active  local           192.0.2.3       192.0.2.1

Illustrative output: this router is Active for group 10 with priority 110 and preemption, and 192.0.2.3 is Standby. Hosts in VLAN 10 should use 192.0.2.1 as gateway.

Technical sources
Command lookup Jump straight to Cisco syntax
Detailed reference and supporting material

Additional explanation, verification and reference tables.

At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Verificationsame group, version and virtual IP on both routers → hellos exchanged → highest priority active → standby listening → tracking lowers prior…
Scope / prerequisiteUse it to remove the default gateway as a single point of failure, and when the wrong router is active or both claim th…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
When to use this

Use it to remove the default gateway as a single point of failure, and when the wrong router is active or both claim the role.

First 30 seconds

1. show standby brief (or show vrrp brief) on both routers — one Active, one Standby?

2. Both Active → hellos not passing: VLAN, trunk, filter, or version or group mismatch.

3. Wrong one Active → priority and preempt.

4. Uplink failure not handled → tracking, plus preempt on the peer.

5. Hosts' gateway = the virtual IP?

Operational verification

same group, version and virtual IP on both routers → hellos exchanged → highest priority active → standby listening → tracking lowers priority on uplink loss → peer preempts → hosts keep the same gateway address

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.
Additional verification procedures
Operational workflow

Verification & Troubleshooting

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

1 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 Typical faults & boundaries Narrow the fault
  • Both routers are active (or master). They do not hear each other's hellos: a VLAN or trunk problem, a filter, or mismatched versions or group numbers.
  • The wrong router is active. No preemption, so whichever came up first keeps the role; or the priorities are equal.
  • The primary does not resume after recovery. HSRP preempt is missing.
  • Traffic is black-holed when an uplink fails. No tracking; the router keeps the gateway role without a path onwards.
  • Tracking lowers the priority but nothing changes. The other router lacks preemption, or the decrement does not bring the priority below the other's.
  • The log reports a duplicate address or differing virtual IP. The virtual IP is configured differently on the two routers, or is in use by a host.
  • Hosts lose connectivity for seconds at failover. Default timers; shorten them or use BFD.
  • Hosts use a router's real address as gateway. They get no redundancy; the gateway must be the virtual IP.
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
Key points

Highest priority wins. HSRP does not preempt unless configured; VRRP does by default. Without tracking, a router that loses its uplink stays gateway with nowhere to send traffic. Both routers active means they do not hear each other's hellos.

Key checks
  • show standby brief — HSRP: group, priority, preempt, state, active and standby router, virtual IP.
  • show vrrp brief — the VRRP equivalent.
  • show standby / show vrrp — timers, tracking and state changes.
  • show track — tracked objects.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

Hosts are configured with a single default gateway. HSRP and VRRP let two or more routers share one virtual gateway address, so that when the router currently answering for it fails, another takes over and the hosts notice nothing.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Without it, the default gateway is a single point of failure for every device on the subnet. The two protocols do the same job with different names and defaults — in particular whether a recovered router takes its role back — and those defaults explain most "the wrong router is active" observations.

ReferenceHow it works1 section · depth on demand

How it works

The routers in a group share a virtual IP address and a virtual MAC address. One router answers for them and forwards the hosts' traffic; the others listen for its hellos and take over when they stop. Hosts use the virtual IP as their default gateway and never see the change — the virtual MAC stays the same.

HSRPVRRP
OriginCiscoIETF standard
RolesActive / StandbyMaster / Backup
Virtual MAC0000.0c07.acXX (v1), 0000.0c9f.fXXX (v2)0000.5e00.01XX
Hellos sent to224.0.0.2 (v1) or 224.0.0.102 (v2), UDP 1985224.0.0.18, IP protocol 112
Hello / takeover3 s / 10 s1 s / about 3 s
Default priority100100
PreemptionOff by defaultOn by default
Virtual IPA separate addressMay be a router's own interface address

XX is the group number in hexadecimal.

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

Election. The highest priority wins; a tie goes to the highest IP address.

Preemption. Without it, a router with higher priority that comes back does not take over from the one currently active. HSRP therefore needs preempt configured if the designated primary should resume its role; VRRP does it by default.

Tracking. A router whose uplink fails is still alive on the LAN and would remain the gateway while having nowhere to send traffic. standby 20 track <object> decrement 20 lowers its priority when the tracked object fails; the other router must have preemption enabled to take over.

Failover. The new active router sends a gratuitous ARP so that switches learn the virtual MAC on its port.

HSRP version 1 and version 2 do not interoperate, and all routers in a group need the same group number and virtual IP.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

HSRP and VRRP in practice

HSRP (Cisco) and VRRP (standard) both let two or more routers share one gateway address, so hosts keep their default gateway when a router fails. RFC 5798 defines VRRPv3:

  • The Master forwards for the virtual IP address and a virtual MAC address (00-00-5E-00-01-{VRID} for IPv4, 00-00-5E-00-02-{VRID} for IPv6).
  • Priority 255 is reserved for the address owner, and the default is 100.
  • The Master advertises every second by default.
  • Backups take over after three intervals plus a priority-dependent skew.
  • Pre-emption is on by default.
  • Advertisements go to 224.0.0.18 or FF02::12, as IP protocol 112 with TTL 255.

HSRP compared with VRRP

HSRP v2VRRPv3 (RFC 5798)
RolesActive, standby, listenMaster, backup
Virtual MAC0000.0c9f.fXXX0000.5e00.01XX (IPv4)
Pre-emption defaultOffOn
Virtual IP = interface IPNot allowedAllowed (address owner, priority 255)
Default timers3 s hello, 10 s hold1 s advertisement, about 3.6 s down interval
IPv6YesYes (same protocol)
Load sharingSeveral groupsSeveral groups

Design checklist

ItemRecommendation
Align the FHRP primary with the STP rootAvoid traffic crossing the inter-switch link
Enable pre-emption with a delayLet routing converge before taking back the role
Track uplinks or IP SLAGive up the role when the path out fails
Use authentication where supportedPrevent rogue routers taking over
Consider StackWise Virtual insteadOne logical gateway, no FHRP needed
dist1(config)# interface Vlan110
dist1(config-if)# standby version 2
dist1(config-if)# standby 110 ip 10.110.0.1
dist1(config-if)# standby 110 priority 110
dist1(config-if)# standby 110 preempt delay minimum 60
dist1(config-if)# standby 110 track 10 decrement 20
dist1# show standby brief
                     P indicates configured to preempt.
Interface   Grp  Pri P State    Active          Standby         Virtual IP
Vl110       110  110 P Active   local           10.110.0.3      10.110.0.1
dist1# show vrrp brief
host$ ip neigh show 10.110.0.1
10.110.0.1 lladdr 00:00:0c:9f:f0:6e REACHABLE

Verifying from the host

The host's ARP entry for the gateway should show the virtual MAC, not a physical one. If it shows a physical MAC, the host learned the gateway before the FHRP was configured, or it uses a different gateway address.

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 Network & Protocols → HSRP & VRRP Reference. 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%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
hsrpvrrpfhrpvirtual gatewayactive standby
Embedded quick reference

Operational notes

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

HSRP vs VRRP Fast Reference

Virtual gateway state lookup.

HSRP → Cisco terminology Active/Standby

VRRP → standards-based Master/Backup

Check:

  • virtual IP
  • virtual MAC
  • priority
  • preempt
  • tracked objects
  • L2/VLAN reachability
  • failover behavior

The virtual gateway can fail even while both physical routers are reachable.

Confirmation

Confirm action

Continue?