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.
HSRP & VRRP Reference
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 state | Possible cause | Command | Observation and next check |
|---|---|---|---|
| Both routers Active / Master | Hellos not received: Layer 2 path, ACL, group or authentication mismatch | show 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 Active | Priority or preemption not set as intended | show 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 gateway | Hosts use a real interface IP, or the virtual IP differs | show 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 fails | Uplink not tracked | show 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 repeatedly | Packet loss between routers or very short timers | show 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.1Illustrative 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.
Detailed reference and supporting material
Additional explanation, verification and reference tables.
Operational reference
Fast context before you go deeper.
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?
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
Additional verification procedures
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 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
preemptis 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 · 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.
ReferenceWhat it is1 section · depth on demand
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.
| HSRP | VRRP | |
|---|---|---|
| Origin | Cisco | IETF standard |
| Roles | Active / Standby | Master / Backup |
| Virtual MAC | 0000.0c07.acXX (v1), 0000.0c9f.fXXX (v2) | 0000.5e00.01XX |
| Hellos sent to | 224.0.0.2 (v1) or 224.0.0.102 (v2), UDP 1985 | 224.0.0.18, IP protocol 112 |
| Hello / takeover | 3 s / 10 s | 1 s / about 3 s |
| Default priority | 100 | 100 |
| Preemption | Off by default | On by default |
| Virtual IP | A separate address | May 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 (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 v2 | VRRPv3 (RFC 5798) | |
|---|---|---|
| Roles | Active, standby, listen | Master, backup |
| Virtual MAC | 0000.0c9f.fXXX | 0000.5e00.01XX (IPv4) |
| Pre-emption default | Off | On |
| Virtual IP = interface IP | Not allowed | Allowed (address owner, priority 255) |
| Default timers | 3 s hello, 10 s hold | 1 s advertisement, about 3.6 s down interval |
| IPv6 | Yes | Yes (same protocol) |
| Load sharing | Several groups | Several groups |
Design checklist
| Item | Recommendation |
|---|---|
| Align the FHRP primary with the STP root | Avoid traffic crossing the inter-switch link |
| Enable pre-emption with a delay | Let routing converge before taking back the role |
| Track uplinks or IP SLA | Give up the role when the path out fails |
| Use authentication where supported | Prevent rogue routers taking over |
| Consider StackWise Virtual instead | One 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.
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 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%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.
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.
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.