Pcornel
Networking · Routing › First Hop Redundancy

VRRP (Virtual Router Redundancy Protocol)

Cheat sheet · https://pcornel.dk/topic.php?topic=643

Back to the Topic

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.

Remember

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.

First 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.

Commands

show vrrp brief
VRRP group role and virtual IP summary.
vrrp <group> ip <virtual-ip>
Set the VRRP virtual IP address for a group.
vrrp <group> priority <value>
Set the VRRP priority (default 100).
vrrp <group> preempt
Enable VRRP preemption (on by default).
show vrrp
Display detailed VRRP state.
show vrrp interface <interface>
Display VRRP state for one interface.
show vrrp detail

Verify in this order

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

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

VRRP roles

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=643

Confirmation

Confirm action

Continue?