Week 6 · Lesson 22

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.

CCNA 200-301 Domain 3.0 IP Connectivity Verified 2026-10-11
Learning objectives
Part 1

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

Definition — FHRP A First-Hop Redundancy Protocol lets two or more routers present a single shared virtual IP address (and virtual MAC) as the hosts' default gateway. If the active router fails, another takes over the virtual address and the hosts never change their configuration.
In this lesson · select a part to jump

Key ideas & exam traps · select one

Part 2

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.

PC GW = 10.0.0.1 R1 ACTIVE R2 STANDBY Virtual IP 10.0.0.1 Virtual MAC 0000.0C07.AC01 Both routers send hellos; if R1 fails, R2 claims the virtual address.
HSRP example. The PC points at the virtual IP 10.0.0.1. R1 owns it while active; R2 monitors the hellos and takes over the virtual IP and MAC if R1 stops responding.

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.

Part 3

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.

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.

Exam tip — HSRP numbers Virtual MAC 0000.0C07.ACxx (xx = group), default priority 100, higher priority wins, and preempt is required for a recovering higher-priority router to reclaim the active role. HSRP is Cisco-proprietary.
Part 4

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.

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.

Note — same goal, different paperwork Both HSRP and VRRP elect exactly one forwarding router at a time. If you need all routers to forward at once for load sharing, you want GLBP (next section) or multiple HSRP/VRRP groups with different active routers.
Part 5

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.

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.

FeatureHSRPVRRPGLBP
OriginCisco-proprietaryIETF standard (open)Cisco-proprietary
RolesActive / StandbyMaster / BackupAVG / up to 4 AVFs
Virtual MAC0000.0C07.ACxx0000.5E00.01xx0007.B400.xxyy
Default priority100 (higher wins)100 (higher wins)100 (higher wins)
Preempt defaultOff (must configure)OnPreempt controls AVG takeover
Load sharingNo (one active)No (one master)Yes (up to 4 forwarders)
Multicast / protocol224.0.0.2 (v1), UDP 1985 (v2)224.0.0.18, IP proto 112224.0.0.102, UDP 3222
Reference table · select a row

Part 6

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.

Key terms

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.

Key terms · select a term

Part 7 · Your turn

Review

Check what you have learned with these review questions.

Review · 5 questions

Sources

Sources & references

  1. Cisco. CCNA (200-301) Exam Topics. cisco.com.
  2. IETF. Request for Comments (RFCs). rfc-editor.org.
  3. 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.