Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VRRP (Virtual Router Redundancy Protocol)

Direct answer

VRRP is the standard first-hop redundancy protocol: routers in a group elect a master that answers for the virtual IP, and backups that take over when the master's advertisements stop.

When to use this

Use it for a redundant gateway in a multi-vendor network, or where the standard is required.

First 30 seconds

1. show vrrp brief on all routers — one Master, others Backup?

2. Several Masters → advertisements not received: VLAN, group, version, authentication.

3. Wrong Master → priorities; the owner (255) always wins.

4. No failover on uplink loss → tracking.

5. show logging | include VRRP — state changes?

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

Failure signatureVRRP has two masters or no master for the gateway

Hosts lose their default gateway, or both routers show Master for the same group.

Possible stored cause: VRID, virtual IP, version or authentication does not match, or advertisements do not reach the peer.
Evidence · next step

Compare all peer outputs and perform a controlled failover with endpoint traffic.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Treating VRRP as UDP/TCP traffic instead of IP protocol 112
  • Assuming a configured Backup is actually hearing the Master
  • Expecting priority alone to explain every current-role outcome
  • Ignoring the special priority 255 address-owner behavior
  • Verifying only protocol state and not ARP/CAM or upstream forwarding
  • Changing preemption before proving the recovery path is stable.
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 commandvrrp <group> ip <virtual-ip>
Scope / prerequisiteUse it for a redundant gateway in a multi-vendor network, or where the standard is required.
Show · 2Reference · 4
What next?3 suggested next steps
Child topics (this level)5
Catalog command links6
Evidence2
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

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.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Hosts lose their default gateway, or both routers show Master for the same group.

Step 1 First 30 seconds Verify boundary

Immediate answer: Confirm VRRP group, master/backup state, virtual IP, priority/tracking and L2 reachability.

Verification chain: Peer advertisements → election → master ownership → virtual IP/MAC → host neighbor entry → forwarding

Stop condition: Master state shows election outcome, not end-to-end gateway service.

Step 2 Verification and output interpretation Verify boundary

Use show vrrp or show vrrp brief to verify group, interface, virtual IP, local state, priority and the current Master identity. The expected steady state is exactly one Master per virtual-router instance with backups seeing fresh advertisements. Confirm the virtual IP/MAC is usable from the client segment and that failover changes ownership without changing the host default-gateway configuration. For tracked designs, verify the tracked object state and effective priority rather than only the configured base priority. After a failover, inspect the routing table and upstream reachability on the new Master; VRRP state can be correct while the selected router lacks the required route or service path.

Step 3 Troubleshooting order Narrow the fault

Start with the VLAN/SVI or routed interface, then confirm VRID and virtual IP consistency, identify Master and Backup peers, compare priority/preemption, verify VRRP advertisements, and finally correlate the virtual identity with ARP/CAM, STP and upstream routing. If two peers both claim Master, investigate control-message isolation before changing priorities.

Evidence references

Evidence · 2 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1packet · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Pre-emption is on by default. A router whose own interface address is the virtual IP is the owner (priority 255) and always master. Virtual MAC: 0000.5e00.01XX. On IOS XE, VRRPv3 is configured with fhrp version vrrp v3 and per address family.

Key checks
  • show vrrp brief — groups, state, priority, master address.
  • show vrrp — timers, pre-emption, tracking, virtual MAC.
  • show track — tracked objects.
  • show logging | include VRRP — state changes.
ReferenceWhat it is1 section · depth on demand

What it is

Virtual Router Redundancy Protocol (VRRP) is a standards-based first-hop redundancy protocol. Multiple routers share a virtual router identity so hosts keep one default-gateway address while one router operates as Master and one or more peers remain Backup candidates.

ReferenceHow it works1 section · depth on demand

How VRRP works

Routers in the same VRID share a virtual IP and exchange VRRP advertisements directly in IP protocol 112. One router is Master and sends advertisements; Backup routers monitor them. If the Master disappears, a Backup uses its priority and Master-down timing to become Master. The new Master assumes the virtual gateway identity, after which Layer 2 ARP/CAM state and upstream routing must also converge for users to benefit.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

VRRP: the standards-based first-hop redundancy protocol

Cisco's VRRPv3 guide describes VRRP as a group of routers forming one virtual router. VRRPv3 supports IPv4 and IPv6, and VRRPv2 only IPv4. On IOS XE, enabling VRRPv3 with fhrp version vrrp v3 makes the older VRRPv2 commands unavailable.

ItemValue (from the guide)
IPv4 multicast224.0.0.18
IPv6 multicastFF02::12
IP protocol112
Default priority100
PreemptionEnabled by default
Advertisement interval1000 ms default; 100–40000 ms
ElectionHighest priority; ties go to the higher IP address
C9300-A(config)# fhrp version vrrp v3
C9300-A(config)# interface Vlan20
C9300-A(config-if)# ip address 10.20.0.2 255.255.255.0
C9300-A(config-if)# vrrp 20 address-family ipv4
C9300-A(config-if-vrrp)# address 10.20.0.1 primary
C9300-A(config-if-vrrp)# priority 110
C9300-A(config-if-vrrp)# preempt delay minimum 30
C9300-A(config-if-vrrp)# timers advertise 1000
C9300-A# show vrrp detail
Vlan20 - Group 20 - Address-Family IPv4
  State is MASTER
  State duration 2 days 3 hours
  Virtual IP address is 10.20.0.1
  Virtual MAC address is 0000.5E00.0114
  Advertisement interval is 1000 msec
  Preemption enabled, delay 30 sec
  Priority is 110
  Master Router is 10.20.0.2 (local), priority is 110

The address owner

The guide defines the owner as the router whose physical interface address is the virtual address. VRRP allows that; HSRP doesn't. In practice, a separate virtual address is easier to operate, because the owner always takes over when it returns.

VRRP versus HSRP in configuration

VRRPv3 on IOS XEHSRP
Enablefhrp version vrrp v3 onceNothing global
Groupvrrp <id> address-family ipv4 submodestandby <id> … interface commands
PreemptionOn by defaultOff by default
InteroperabilityMulti-vendorCisco only

Checks

show vrrp detail gives state, priority and timers. Two masters at the same time mean advertisements aren't arriving. Check the VLAN, ACLs and that both sides use the same VRRP version and group number.

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.

State model and protocol mechanics

VRRP groups participating routers into a virtual router identified by a group/VRID and virtual IP address. One router becomes Master and forwards for the virtual identity; backups listen for advertisements and can take over when the Master is no longer considered available. Priority influences election, with the owner of the virtual IP receiving special treatment in classic behavior. Preemption allows a higher-priority router to reclaim the Master role when it returns, depending on platform/configuration. Hosts continue to ARP for and send traffic to the virtual default gateway rather than learning a different physical router address during failover. The control protocol therefore protects first-hop identity, while routing, interface and upstream service state on the active router remain separate dependencies.

Limits and common misconceptions

VRRP protects the first-hop gateway identity, not the entire path. A router can be Master while an upstream dependency is broken if the design does not track that dependency. Backup state is not a fault; it is the expected role for non-Master members. Successful client ARP to the virtual address shows local gateway resolution, not remote application reachability. Preemption can intentionally cause an additional role change when a preferred router returns, so a second transition is not automatically instability. Keep virtual-router election, interface/L2 reachability, upstream routing and end-to-end service as separate evidence layers.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Configure the same VRRP group and virtual IP on routers that share the host-facing subnet, assign priorities to express intended ownership, and decide whether preemption aligns with the desired recovery behavior. Ensure the virtual address is valid for the subnet and not duplicated by an unrelated endpoint. Where supported, tie priority to meaningful tracked objects so loss of the actual forwarding dependency can influence mastership rather than only local interface state. Keep timers consistent and avoid unnecessarily aggressive values that reduce failure-detection time at the cost of sensitivity to transient loss or control-plane load. Document the physical interface addresses separately from the virtual gateway so operations staff can reach and inspect each router even when it is Backup.

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 → VRRP. 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

VRRP roles

Interpret the main operational roles before troubleshooting election policy.

RoleMeaningFirst check
MasterCurrent virtual-router owner and advertisement senderVerify intended priority, VIP and upstream path
BackupListening takeover candidateVerify Master advertisements and takeover readiness
InitInterface/group is not yet participating normallyVerify interface state and VRRP configuration

VRRP protocol quick reference

Stable protocol facts useful for lookup and packet analysis.

FieldIPv4 VRRP
IP protocol112
Multicast destination224.0.0.18
VRID range1-255
Normal priority range1-254
Address owner255
Relinquish advertisement0
Virtual MAC0000.5e00.01XX

VRRP election and recovery

Read current role together with priority and preemption.

ObservationInterpretationNext check
Highest eligible priority is MasterExpected preferenceVerify path health and peer agreement
Priority 255 router is MasterVirtual-address owner behaviorConfirm address ownership is intentional
Higher-priority router remains BackupPreemption/policy or peer-view issueCheck preemption and advertisements
Two routers claim MasterSplit election view/control isolationCapture VRRP and verify VLAN/L2 path
Backup becomes Master after advertisements stopExpected failoverVerify ARP/CAM and user traffic

VRRP troubleshooting flow

Work from the local segment outward.

StepVerifyEvidence
1VLAN/SVI/interfaceInterface and VLAN operational state
2VRID + virtual IPshow vrrp brief
3Master/Backup electionshow vrrp on all peers
4Priority + preemptDetailed VRRP state/config
5AdvertisementsVRRP / IP protocol 112 packet capture
6Virtual identityClient ARP + switch CAM
7Routed pathRouting/forwarding from current Master
8ServiceControlled failover with endpoint traffic

VRRP · operational reference

Compact state and interpretation boundaries for fast lookup.

VRRP stateMeaning
MasterCurrently owns/forwards for virtual gateway
BackupReady to assume virtual-router role
PriorityElection preference, possibly modified by tracking
Virtual IP/MACStable first-hop identity presented to hosts
TrackingOptional link between forwarding dependency and role
Embedded quick reference

Operational notes

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

VRRP Fast Check

Master/backup and virtual gateway in a few checks.

Quick checks

  • show vrrp brief
  • Verify VRID + virtual IP
  • Verify priority/preemption
  • Check interface/VLAN state
  • Test gateway MAC/ARP/ND behavior

Husk

Master state is one boundary; upstream route and L2 path still need evidence.

Depth when you need it

Deep reference

Additional depth

VRRP protocol facts

VRRPv3 is specified in RFC 5798 for IPv4 and IPv6. IPv4 VRRP uses IP protocol 112 and link-local multicast 224.0.0.18. The VRID is 1-255. IPv4 virtual MAC addresses use 0000.5e00.01XX, with XX representing the VRID in hexadecimal. These protocol facts are useful for packet/evidence work, but always verify platform-specific CLI and output.

Confirmation

Confirm action

Continue?