Use it for a redundant gateway in a multi-vendor network, or where the standard is required.
VRRP (Virtual Router Redundancy Protocol)
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.
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?
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
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.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
- 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.
Operational reference
Fast context before you go deeper.
vrrp <group> ip <virtual-ip>Primary Commands
Configuration and operational commands for this Topic.
vrrp <group> ip <virtual-ip>ReferenceSet the VRRP virtual IP address for a group.
Use when: Create the shared VRRP virtual router used as the endpoint default gateway.
Quick note: Verify with show vrrp brief, endpoint gateway configuration and ARP for the VIP.
vrrp <group> priority <value>ReferenceSet the VRRP priority (default 100).
Use when: Express which non-owner router should normally be preferred Master.
Quick note: Compare displayed state across all peers, not only running configuration.
Cisco IOS / IOS XE · mixedvrrp <group> preemptReferenceEnable VRRP preemption (on by default).
Use when: Use when the design requires deterministic return to the preferred Master after recovery.
Quick note: VRRP standards behavior is preemptive by default for normal peers, but verify Cisco platform defaults and options.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show vrrpShowDisplay detailed VRRP state.
Use when: Primary deep verification command for explaining a VRRP election or failover state.
Quick note: Field names and timer details vary by IOS/IOS XE release.
Cisco IOS / IOS XE · mixedshow vrrp briefShowVRRP group role and virtual IP summary.
Use when: Fast first command for wrong Master, missing Backup or broad VRRP health checks.
Quick note: Excellent triage command; compare both/all peers.
Cisco IOS XE · mixedshow vrrp interface <interface>ReferenceDisplay VRRP state for one interface.
Use when: Use when one SVI/routed interface carries multiple VRRP groups or when the fault is isolated to one interface.
Quick note: Availability and exact output format are platform/software dependent.
Cisco IOS / IOS XE · mixedVerification & 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.
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 · 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.
The VRID shows the intended Master and an expected Backup peer with the correct virtual IP and priority.
packet · Evidence referenceVRRP advertisements absent between expected peersA capture on the expected shared segment sees no VRRP IP protocol 112 advertisements from the missing peer during the observation window.
Subtopics
Go one level deeper into this subject.
In VRRP, one router is Master for a virtual router (VRID) and assumes forwarding responsibility for the virtual IP while Backup routers monitor advertisements and remain ready to take over.
Subtopic VRRP Backup RouterA VRRP Backup participates in the same virtual router configuration but does not normally forward as the owner of the virtual gateway while a valid Master is present.
Subtopic Virtual IPThe VRRP virtual IP represents the logical default gateway offered by a virtual router.
Subtopic PriorityVRRP priority expresses which eligible router should be preferred as Master for a VRID.
Subtopic PreemptionVRRP preemption determines whether a higher-priority eligible Backup can replace a lower-priority current Master when the preferred router returns.
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.
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.
| Item | Value (from the guide) |
|---|---|
| IPv4 multicast | 224.0.0.18 |
| IPv6 multicast | FF02::12 |
| IP protocol | 112 |
| Default priority | 100 |
| Preemption | Enabled by default |
| Advertisement interval | 1000 ms default; 100–40000 ms |
| Election | Highest 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 XE | HSRP | |
|---|---|---|
| Enable | fhrp version vrrp v3 once | Nothing global |
| Group | vrrp <id> address-family ipv4 submode | standby <id> … interface commands |
| Preemption | On by default | Off by default |
| Interoperability | Multi-vendor | Cisco 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.
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
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 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%Quick lookup tables
VRRP roles
Interpret the main operational roles before troubleshooting election policy.
| Role | Meaning | First check |
|---|---|---|
| Master | Current virtual-router owner and advertisement sender | Verify intended priority, VIP and upstream path |
| Backup | Listening takeover candidate | Verify Master advertisements and takeover readiness |
| Init | Interface/group is not yet participating normally | Verify interface state and VRRP configuration |
VRRP protocol quick reference
Stable protocol facts useful for lookup and packet analysis.
| Field | IPv4 VRRP |
|---|---|
| IP protocol | 112 |
| Multicast destination | 224.0.0.18 |
| VRID range | 1-255 |
| Normal priority range | 1-254 |
| Address owner | 255 |
| Relinquish advertisement | 0 |
| Virtual MAC | 0000.5e00.01XX |
VRRP election and recovery
Read current role together with priority and preemption.
| Observation | Interpretation | Next check |
|---|---|---|
| Highest eligible priority is Master | Expected preference | Verify path health and peer agreement |
| Priority 255 router is Master | Virtual-address owner behavior | Confirm address ownership is intentional |
| Higher-priority router remains Backup | Preemption/policy or peer-view issue | Check preemption and advertisements |
| Two routers claim Master | Split election view/control isolation | Capture VRRP and verify VLAN/L2 path |
| Backup becomes Master after advertisements stop | Expected failover | Verify ARP/CAM and user traffic |
VRRP troubleshooting flow
Work from the local segment outward.
| Step | Verify | Evidence |
|---|---|---|
| 1 | VLAN/SVI/interface | Interface and VLAN operational state |
| 2 | VRID + virtual IP | show vrrp brief |
| 3 | Master/Backup election | show vrrp on all peers |
| 4 | Priority + preempt | Detailed VRRP state/config |
| 5 | Advertisements | VRRP / IP protocol 112 packet capture |
| 6 | Virtual identity | Client ARP + switch CAM |
| 7 | Routed path | Routing/forwarding from current Master |
| 8 | Service | Controlled failover with endpoint traffic |
VRRP · operational reference
Compact state and interpretation boundaries for fast lookup.
| VRRP state | Meaning |
|---|---|
| Master | Currently owns/forwards for virtual gateway |
| Backup | Ready to assume virtual-router role |
| Priority | Election preference, possibly modified by tracking |
| Virtual IP/MAC | Stable first-hop identity presented to hosts |
| Tracking | Optional link between forwarding dependency and role |
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.
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.