Use it to give hosts a gateway that survives a router failure, and when failover does not happen or the wrong router is active.
First Hop Redundancy
A first-hop redundancy protocol lets two or more routers share one virtual gateway address. Hosts use the virtual IP as their default gateway; if the active router fails, another takes over the same address and virtual MAC. HSRP and GLBP are Cisco's; VRRP is the standard.
1. show standby brief (or show vrrp brief) on both routers — one active/master, one standby/backup?
2. Both active → they do not hear each other: VLAN, group number, authentication, version.
3. Wrong router active → priorities and pre-emption.
4. No failover when the uplink fails → tracking missing (show track).
5. Hosts use the virtual IP as gateway?
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
Context & applicabilityCommon mistakes · platform/version boundaries
- Treating two configured gateways as evidence of high availability.
- Testing only the virtual IP and not real user traffic through the router.
- Ignoring STP root placement and creating avoidable hairpin paths.
- Tracking the local SVI while the real failure is the uplink.
- Using different group numbers, versions or virtual IPs on the two routers.
Operational reference
Fast context before you go deeper.
ip address 10.10.10.2 255.255.255.0Verification & 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 Verification commands for HSRP, VRRP and GLBP Verify boundary
| Protocol | Summary | Detail | Shows |
|---|---|---|---|
| HSRP | show standby brief | show standby vlan <id> | Role, priority, preempt, virtual IP, active/standby peer |
| VRRP | show vrrp brief | show vrrp interface vlan <id> | Master/backup, priority, master address |
| GLBP | show glbp brief | show glbp vlan <id> | AVG and the AVF forwarding for each virtual MAC |
| Tracking | show track | show track <id> | Object state and the priority decrement it causes |
Then test from a host: ping the virtual IP, check the host ARP entry for the virtual MAC, and fail the active router to confirm takeover.
Step 2 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| Both routers Active | show standby brief | One Active, one Standby per group | Hellos not received: VLAN, ACL, group number or authentication mismatch |
| Wrong router Active | show standby | Priority, preempt, tracked object state | preempt missing or tracking not decrementing |
| Hosts lose the gateway on failover | show ip arp <virtual-ip> on a host-side device | Virtual MAC, not a real router MAC | Host configured with a real IP as gateway |
| Failover slow | show standby | Hello/hold timers | Tune timers or use BFD; check STP convergence on the VLAN |
Step 3 Where it fails Narrow the fault
Typical failure order: VLAN not carried to both routers (both become Active) → group number, version or authentication mismatch (peers ignore each other's hellos) → wrong router Active because preempt or tracking is missing → tracking points to the local SVI instead of the real uplink → FHRP correct but STP root on the other distribution switch, so traffic crosses the inter-switch link → upstream routing does not return traffic to the new Active router.
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.
Subtopics
Go one level deeper into this subject.
show standby brief— HSRP groups: state, priority, active and standby router, virtual IP.show vrrp brief— VRRP groups: state, priority, master address.show standby/show vrrp— timers, pre-emption, tracking, virtual MAC.show track— tracked objects and their state.show ip arp <virtual ip>on a host-side device — the virtual MAC.
ReferenceWhat it is1 section · depth on demand
What it is
A First Hop Redundancy Protocol gives hosts one virtual default-gateway IP and MAC that is owned by whichever router is currently active. Hosts keep the same gateway when a router fails.
| HSRP | VRRP | GLBP | |
|---|---|---|---|
| Standard | Cisco | RFC 5798 | Cisco |
| Roles | Active / Standby | Master / Backup | AVG / AVF |
| Virtual MAC | 0000.0c07.acXX (v1), 0000.0c9f.fXXX (v2) | 0000.5e00.01XX | One per AVF |
| Preemption default | Off | On | Off (AVG) |
| Load sharing | Per group/VLAN | Per group/VLAN | Within one group |
The router with the highest priority (default 100) becomes active; ties go to the highest IP address.
ReferenceWhy it matters1 section · depth on demand
ReferenceHow it works1 section · depth on demand
How first-hop redundancy works
Hosts keep one default gateway address while multiple Layer 3 devices participate in a redundancy protocol. The control protocol elects the owner of the virtual identity. During a gateway failure, another device assumes that identity and forwarding responsibility. The surrounding campus design must still deliver Layer 2 frames to that new owner and provide a usable upstream route.
ReferenceImportant terms & boundaries3 sections · depth on demand
Key points
- Hosts must point to the virtual IP, not to a router's real address.
- Without
preempt, a recovered higher-priority HSRP router does not take back the active role. - Interface tracking lowers priority when an uplink fails, so the active role moves to a router that can still forward.
- Align the active FHRP router with the STP root for the same VLAN, or traffic crosses the inter-switch link twice.
- FHRP protects the first hop only; return traffic still depends on routing.
In depth
First-hop redundancy gives hosts one gateway address that survives a router failure
Hosts are normally configured with a single default gateway. A first-hop redundancy protocol (FHRP) lets two or more routers share a virtual IP and virtual MAC address. One router forwards for the virtual address, and another takes over if it fails, without any change on the hosts.
| HSRP | VRRP | |
|---|---|---|
| Origin | Cisco | IETF standard (VRRPv3 in RFC 5798) |
| Roles | Active, standby | Master, backup |
| IPv4 multicast | 224.0.0.2 (v1), 224.0.0.102 (v2) | 224.0.0.18, IP protocol 112 |
| Virtual MAC (IPv4) | 0000.0C07.ACxx (v1), 0000.0C9F.Fxxx (v2) | 0000.5E00.01xx |
| Default priority | 100 | 100 |
| Preemption by default | No | Yes |
| Can use a real interface IP as the virtual IP | No | Yes (the owner) |
The HSRP values come from Cisco's IOS XE HSRP guide and the VRRP values from Cisco's VRRPv3 guide. Cisco's VRRPv3 example uses the virtual MAC 0000.5E00.0101 for group 1.
C9300-A(config)# interface Vlan20
C9300-A(config-if)# ip address 10.20.0.2 255.255.255.0
C9300-A(config-if)# standby version 2
C9300-A(config-if)# standby 20 ip 10.20.0.1
C9300-A(config-if)# standby 20 priority 110
C9300-A(config-if)# standby 20 preempt
C9300-A(config-if)# standby 20 track 1 decrement 20
C9300-A# show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Vl20 20 110 P Active local 10.20.0.3 10.20.0.1
Design points
| Point | Recommendation |
|---|---|
| Align with STP | The FHRP active router should also be the STP root for that VLAN, so traffic doesn't cross the inter-switch link |
| Tracking | Track the uplink so a router with no upstream path gives up the active role |
| Preemption delay | Let routing converge after a reboot before taking over |
| Load sharing | Alternate active routers per VLAN |
What FHRP doesn't cover
FHRP protects only the first hop. Upstream redundancy still depends on routing. With StackWise Virtual or a stack acting as one gateway, an FHRP isn't needed at all.
Documented example, not captured output.
VRRP details and tracking
VRRP is the standard first-hop redundancy protocol. The Master advertises once a second by default, and the Backups take over when advertisements stop for the Master_Down_Interval. Priority 255 belongs to the router that owns the virtual address, the default is 100, and pre-emption is on unless you disable it.
VRRP details (RFC 5798)
| Item | Value |
|---|---|
| IP protocol | 112 |
| TTL / hop limit | Must be 255; others are discarded |
| Priority 0 | The Master is giving up; Backups take over immediately |
| Master_Down_Interval | 3 × advertisement interval + skew time |
dist1(config)# interface Vlan110
dist1(config-if)# vrrp 110 address-family ipv4
dist1(config-if-vrrp)# address 10.110.0.1 primary
dist1(config-if-vrrp)# priority 110
dist1(config-if-vrrp)# track 10 decrement 20
dist1# show vrrp brief
Interface Grp A-F Pri Time Own Pre State Master addr/Group addr
Vl110 110 IPv4 110 0 N Y MASTER 10.110.0.2(local) 10.110.0.1
dist2# show vrrp brief | include Vl110
Vl110 110 IPv4 100 3609 N Y BACKUP 10.110.0.2 10.110.0.1
Tracking
If the Master's uplink fails, it should give up the gateway role. Tracking an uplink or an IP SLA object lowers the priority (here by 20, to 90), so the Backup at 100 pre-empts. Without tracking, the Master keeps forwarding into a dead uplink.
ReferenceConfiguration & state1 section · depth on demand
Configuration example: HSRP v2 (Cisco IOS XE)
track 10 interface GigabitEthernet0/0/0 line-protocol
!
interface Vlan10
ip address 10.10.10.2 255.255.255.0
standby version 2
standby 10 ip 10.10.10.1
standby 10 priority 110
standby 10 preempt
standby 10 track 10 decrement 20
The peer uses 10.10.10.3 with the default priority of 100. If the uplink fails, this router drops to 90 and the peer takes over. 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 Routing → First Hop Redundancy. 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
First-hop redundancy boundary map
Separate gateway protocol state from the surrounding availability path
| Boundary | Healthy evidence | Failure clue | Next question |
|---|---|---|---|
| VLAN / SVI | Interface and VLAN operational | Gateway interface down/wrong VLAN | Is the local segment intact? |
| Virtual gateway | Expected VIP and role | VIP/group mismatch or no owner | Do both peers agree? |
| Peer redundancy | Active + Standby present | Standby unknown/absent | Can HSRP control traffic cross the segment? |
| Election policy | Priority/preempt/tracking match intent | Wrong Active or no failback | Is preference changing as designed? |
| Layer 2 path | STP/CAM leads to Active | Hairpin or stale virtual-MAC path | Is STP/FHRP aligned? |
| Upstream | Active has usable route/path | Gateway alive but remote traffic fails | What is the next Layer 3 boundary? |
HSRP vs VRRP
Fast role and protocol comparison for the two FHRP branches.
| Property | HSRP | VRRP |
|---|---|---|
| Primary terminology | Active / Standby | Master / Backup |
| Standards position | Cisco-oriented | Standards-based |
| Control transport | UDP 1985 | IP protocol 112 |
| Preferred value | Higher priority | Higher priority |
| Common non-owner default | 100 | 100 |
| Host-facing identity | Virtual IP + virtual MAC | Virtual IP + virtual MAC |
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
FHRP config skeleton
Simple HSRP-style virtual gateway reference
interface Vlan20
ip address 10.20.0.2 255.255.255.0
standby 20 ip 10.20.0.1
standby 20 priority 110
standby 20 preempt
Verify virtual IP, priority and active/standby ownership. Then separately verify STP path alignment and upstream routing.
Deep reference
Healthy vs suspicious evidence
Reading show standby brief
Illustrative output, not captured Evidence:
Interface Grp Pri P State Active Standby Virtual IP
Vl10 10 110 P Active local 10.10.10.3 10.10.10.1
P means preempt is configured. local under Active means this router forwards for the virtual IP; the Standby column shows the peer that takes over.