First-Hop Redundancy Protocols
A host has only one default gateway configured. If that router dies, the host loses the network — even if a second router is sitting right there. FHRPs fix this by giving two routers one virtual IP and MAC. HSRP, VRRP, and GLBP are the three to know.
- Explain the default-gateway single point of failure that FHRPs solve.
- Describe the FHRP idea of a shared virtual IP and virtual MAC.
- Compare HSRP, VRRP, and GLBP, including which is proprietary.
- Recall HSRP’s virtual MAC 0000.0C07.ACxx, default priority 100, and the need for preempt.
- Configure HSRP and verify it with show standby and show standby brief.
The default-gateway problem
A host sends traffic to a remote network through exactly one configured default gateway. That address belongs to one physical router interface. If the interface or the router fails, every host that points at it is stranded — it has no way to learn a second gateway on the fly. Dynamic routing does not help here, because routing protocols run between routers, not between a host and its first hop.
One obvious fix is to run a routing protocol on the hosts, but that is impractical: PCs do not speak OSPF, and it would expose the network to host-driven routing changes. The real fix is to make the gateway address itself redundant. That is the job of a First-Hop Redundancy Protocol (FHRP).
The FHRP concept: virtual IP and MAC
All FHRPs work on the same principle. A group of routers agree on a virtual IP address that the hosts use as their default gateway. The routers also share a virtual MAC address associated with that virtual IP. At any moment one router is active (or master) and answers for the virtual address; it responds to ARP requests for the virtual IP with the virtual MAC. The other routers stand by, exchanging periodic hellos with the active router.
To the host, nothing changed: same gateway IP, same gateway MAC. Failover is invisible. The three CCNA FHRPs differ in ownership, election rules, MAC format, and whether they can share load.
HSRP
HSRP (Hot Standby Router Protocol) is Cisco-proprietary. It elects one active router and one standby router; every other router is listening. Routers in a group exchange Hellos; if the active router stops being heard, the standby takes over.
- Virtual MAC:
0000.0C07.ACxx, wherexxis the group number in hex. Group 1 gives0000.0C07.AC01. (HSRP version 2 uses a different MAC range.) - Default priority: 100. The higher priority becomes active. Priorities range 1–255.
- Preempt: needed if you want a higher-priority router to take over from the
current active router. Without
preempt, the election is not forced and the current active stays active. - Versions: HSRPv1 supports groups 0–255; HSRPv2 supports groups 0–4095 and adds IPv6 support.
- Timers: hello 3 s, hold 10 s by default (much faster than OSPF).
The virtual MAC is what makes failover transparent. Hosts ARP for the virtual IP and receive the virtual MAC; whichever router is active answers. Because the MAC does not change, hosts keep forwarding when the standby takes over.
preempt is required for a recovering
higher-priority router to reclaim the active role. HSRP is Cisco-proprietary.
VRRP
VRRP (Virtual Router Redundancy Protocol) is the open-standard equivalent, defined by the IETF, so it works in multi-vendor networks. Its roles are named master and backup rather than active and standby, but the idea is the same: a shared virtual IP and MAC, with the master answering for them.
- Standard: IETF, so it is interoperable across vendors (unlike HSRP).
- Virtual MAC:
0000.5E00.01xx, wherexxis the group. - Default priority: 100. Higher wins, same as HSRP.
- Preempt is on by default in VRRP, so a higher-priority router reclaims the master role automatically.
- Multicast: VRRP advertisements use
224.0.0.18.
The practical difference for the exam is ownership and the default preempt behaviour: HSRP is Cisco,
uses 0000.0C07.ACxx, and needs preempt configured; VRRP is open, uses
0000.5E00.01xx, and preempts by default.
GLBP
GLBP (Gateway Load Balancing Protocol) is Cisco-proprietary and goes one step further: it provides redundancy and load balancing. GLBP elects one Active Virtual Gateway (AVG) that owns the virtual IP and answers ARP requests. But instead of returning one virtual MAC, the AVG hands out the MAC addresses of up to four Active Virtual Forwarders (AVFs), spreading traffic across the routers.
- AVG: one router answers ARP and distributes virtual MACs.
- AVF: up to 4 routers actually forward traffic, each with its own virtual MAC.
- Virtual MAC:
0007.B400.xxyy(xx = group, yy = forwarder). - Because frames are balanced by MAC, hosts that resolve different gateway MACs naturally use different routers.
GLBP is the answer to “which FHRP uses multiple routers to forward traffic at the same time?” HSRP = 1 active + 1 standby; VRRP = 1 master + backups; GLBP = 1 AVG + up to 4 AVFs simultaneously.
| Feature | HSRP | VRRP | GLBP |
|---|---|---|---|
| Origin | Cisco-proprietary | IETF standard (open) | Cisco-proprietary |
| Roles | Active / Standby | Master / Backup | AVG / up to 4 AVFs |
| Virtual MAC | 0000.0C07.ACxx | 0000.5E00.01xx | 0007.B400.xxyy |
| Default priority | 100 (higher wins) | 100 (higher wins) | 100 (higher wins) |
| Preempt default | Off (must configure) | On | Preempt controls AVG takeover |
| Load sharing | No (one active) | No (one master) | Yes (up to 4 forwarders) |
| Multicast / protocol | 224.0.0.2 (v1), UDP 1985 (v2) | 224.0.0.18, IP proto 112 | 224.0.0.102, UDP 3222 |
Configuration and verification
Configuring HSRP on an interface means setting a group number, the virtual IP, and (optionally) priority and preempt. The interface keeps its own unique IP; the virtual IP is shared by the group:
! R1: becomes active for group 1 with priority 150
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ip address 10.0.0.2 255.255.255.0
R1(config-if)# standby 1 ip 10.0.0.1
R1(config-if)# standby 1 priority 150
R1(config-if)# standby 1 preempt
! R2: same group and virtual IP, lower priority, so it is standby
R2(config-if)# ip address 10.0.0.3 255.255.255.0
R2(config-if)# standby 1 ip 10.0.0.1
R2(config-if)# standby 1 preempt
Hosts are then configured with default gateway 10.0.0.1 — the virtual IP. Verify with
show standby (full detail) and show standby brief (the one-line summary):
R1# show standby brief
P indicates configured to preempt.
Interface Grp Pri P State Active Standby Virtual IP
Gi0/0 1 150 P Active local 10.0.0.3 10.0.0.1
For VRRP the equivalent commands use vrrp 1 ip 10.0.0.1 and
vrrp 1 priority; for GLBP, glbp 1 ip 10.0.0.1 and
glbp 1 load-balancing. The verification commands are show vrrp and
show glbp. To test failover in a lab, shut the active router's interface and watch the
standby become active.
The vocabulary you need
Every term below appears in the lesson text above. Select one to read its definition, then use the quiz at the end to check what stuck.
Review
Check what you have learned with these review questions.
Sources & references
- Cisco. CCNA (200-301) Exam Topics. cisco.com.
- IETF. Request for Comments (RFCs). rfc-editor.org.
- IANA. Internet Assigned Numbers Authority registries. iana.org.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.