This browser is too old to run Achievable.

Update it, or open this page in a current version of Chrome, Safari, Firefox or Edge. On an iPhone or iPad, update iOS: every browser there runs on the version of Safari that comes with it.

Achievable logoAchievable logo
CCNA
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Introduction to networking
2. Administering Ethernet LANs
3. IP connectivity
3.1 Understanding IP addresses
3.2 Calculating networks and hosts (Subnetting)
3.3 Routers and IPv4 routing fundamentals
3.4 Static routing
3.5 Static vs. dynamic routing and OSPF fundamentals
3.6 Router redundancy in an Ethernet LAN using First Hop Redundancy Protocols (FHRPs)
3.7 Configuring Cisco Routers
4. Network services
5. IPv6
6. Wireless networking
7. Network management and administering network devices
8. Network security fundamentals
9. Network automation and programmability
Wrapping up
Achievable logoAchievable logo
3.6 Router redundancy in an Ethernet LAN using First Hop Redundancy Protocols (FHRPs)
Achievable CCNA
3. IP connectivity
Our CCNA course is currently in development and is a work-in-progress.

Router redundancy in an Ethernet LAN using First Hop Redundancy Protocols (FHRPs)

8 min read
Font
Discuss
Share
Feedback

The need for router redundancy

Routers let hosts on an Ethernet LAN reach other networks and the Internet. But what happens if the router fails? In many environments (businesses, schools, libraries, banks), a router outage can stop Internet-dependent work. For many organizations - especially in the financial sector - that kind of downtime isn’t acceptable.

A common first idea is to add a second router as a backup. That’s the right direction, but simply adding a backup router introduces a key problem: hosts still need a single, reliable default gateway address.

R1 (Gi0/0, 192.168.1.1) and R2 (Gi0/0, 192.168.1.2) connect to a switch on network 192.168.1.0/24, which also connects a PC configured with IP 192.168.1.3, subnet mask 255.255.255.0, and default gateway 192.168.1.1.
LAN with routers R1 and R2
Achievable
 

In the image above, there are two routers:

  • R1 is the primary router and the default gateway for hosts in the 192.168.1.0/24 LAN.
  • R2 is the backup router that should take over as the default gateway if R1 fails.

Now let’s walk through what happens when R1 fails.

In subnet 192.168.1.0/24, R1's Gi0/0 (192.168.1.1) is down while R2's Gi0/0 (192.168.1.2) is up, both connected via a switch to a PC (192.168.1.3, mask 255.255.255.0) whose default gateway is set to 192.168.1.1; the PC complains it can no longer reach that gateway.
Default gateway behavior after R1 fails
Achievable
 

When R1 fails, hosts in the 192.168.1.0/24 network lose Internet access even though R2 is still up. The reason is simple: the hosts are configured to use R1’s GigabitEthernet0/0 IP as their default gateway (192.168.1.1).

However:

  • R1 Gi0/0 = 192.168.1.1 (the configured default gateway on the hosts)
  • R2 Gi0/0 = 192.168.1.2

R2 can’t just “become” 192.168.1.1 while R1 is using it, because that would create a Duplicate IP Address Conflict. You cannot have duplicate IP addresses existing within the same IP network. A helpful analogy is phone numbers: if multiple phones in the same area code had the same number, which phone should ring?

So the core issue is this: hosts are pointing to a gateway IP address that no longer exists when R1 fails, and the backup router can’t safely use that same IP address under normal conditions.

Why common workarounds aren’t acceptable

This situation creates a real conundrum. There are workarounds, but they’re not ideal:

  • You could configure half the hosts to use R1 as their default gateway and the other half to use R2. But if either router fails, half the network loses Internet access.
  • You could manually change every host’s default gateway to R2’s IP address after a failure. On a large network with hundreds of hosts, this is impractical, causes prolonged downtime, and requires significant effort to coordinate.

Those two options listed above are not acceptable in a modern network, especially where mission critical data must be routed to other networks or out to the Internet.

The best-practice solution: FHRPs

The best-practice solution is to implement a First Hop Redundancy Protocol (FHRP) between R1 and R2.

An FHRP solves the default gateway problem by letting the routers share:

  • a virtual IP address (used by hosts as the default gateway)
  • a virtual MAC address (so hosts don’t need to update ARP entries during failover)

With an FHRP in place:

  • The routers operate in Active/Standby mode for the virtual IP.
    • The active router forwards traffic and handles gateway duties.
    • The standby router monitors the active router and takes over if it detects a failure.
  • Each router’s physical interface still has its own unique IP address in the LAN (separate from the virtual IP).

Because the virtual MAC address stays consistent, hosts typically don’t need to relearn ARP information when the standby router takes over. That’s what makes the failover process seamless.

R1 (active, physical IP 192.168.1.2) and R2 (standby, physical IP 192.168.1.3) share a virtual gateway with VIP 192.168.1.1 and virtual MAC 0000.5E00.01xx, exchanging hello/keepalive messages; PC1, PC2 and PC3 all use default gateway 192.168.1.1, sending traffic through the LAN switch to the virtual IP.
FHRP with R1 and R2 using a virtual IP address
Achievable

When an active router fails, the standby router assumes the active role and immediately sends a Gratuitous ARP (GARP) — which is an unrequested ARP response broadcasted to the network to announce or update an IP-to-MAC mapping.

Even though the virtual MAC address remains identical, this GARP is critical because network switches need to update their MAC address tables. The GARP is not for the hosts, it’s for the switches connected to the routers.

Here is exactly why this happens:

  • The physical path changes: Before the failure, the virtual MAC was reachable via the switch port connected to R1 (Active). After the failure, that same virtual MAC must now be reached via the switch port connected to R2 (Standby).

  • Updating the forwarding table: By broadcasting the GARP, the standby router forces all intervening switches to update their MAC address tables. The switches instantly re-bind the virtual MAC address to the new physical port leading to the standby router.

Without this GARP, switches would continue sending traffic toward the failed router’s port until their MAC table entries naturally timed out (which usually takes 5 minutes), causing severe data loss.

There are two common protocols used today that perform this function.

The Hot Standby Router Protocol (HSRP)

The Hot Standby Router Protocol (HSRP) is Cisco’s proprietary FHRP. It allows one router to be active (forwarding IP traffic and responding to ARP requests from hosts) while another router stays in standby, ready to take over if the active router goes down.

To coordinate failover, the two routers send Hello messages to each other over the directly connected LAN link. These messages act as keepalives and help each router detect whether the other has failed.

The virtual IP address configured on both the active and standby routers is the address the hosts use as their default gateway.

  • HSRP uses multicast address 224.0.0.102 as the destination address in its hello messages.

  • The format of the HSRP virtual MAC address is 0000.0C07.ACxx, where xx is the hexadecimal value of the HSRP group number. For example, group 1 uses 0000. 0C07. AC01.

For HSRP version 2, the MAC address range expands to 0000.0C9F.F000 through 0000.0C9F.FFFF to accommodate more groups.

Virtual Router Redundancy Protocol (VRRP)

The Virtual Router Redundancy Protocol (VRRP) is an industry standard FHRP. It provides the same basic functionality as HSRP. The main terminology difference is that VRRP uses:

  • Master/Backup instead of Active/Standby

These terms describe the same roles: one router forwards traffic as the gateway, and the other is ready to take over if the first fails.

VRRP uses the destination multicast address 224.0.0.18 to send its hello packets.

The VRRP virtual MAC address follows the IEEE 802 format: 0000.5E00.01xx, where xx is the VRRP group ID in hexadecimal. For example, group 121 uses 0000.5E00.0179.

The default gateway problem

  • Single router = single point of failure; hosts lose Internet access if it goes down, even with a backup router present
  • Hosts rely on a configured default gateway IP (e.g. R1’s 192.168.1.1); backup router (R2) can’t simply reuse that IP — causes a duplicate IP address conflict
  • Unacceptable workarounds: splitting hosts between two gateways (half lose access on failure) or manually reconfiguring every host’s gateway after failure (impractical at scale)

First Hop Redundancy Protocols (FHRPs)

  • Solve the problem by having routers share a virtual IP (used as default gateway) and virtual MAC address
  • Routers operate in Active/Standby roles — active forwards traffic, standby monitors and takes over on failure
  • Each router keeps its own unique physical IP; virtual MAC stays constant so hosts don’t need to relearn ARP entries
  • On failover, new active router sends a Gratuitous ARP (GARP) — not for hosts, but to force switches to update MAC address tables and re-map the virtual MAC to the new port (avoids ~5 min delay from MAC table timeout)

HSRP (Cisco proprietary)

  • Uses Active/Standby terminology
  • Routers exchange Hello messages via multicast address 224.0.0.102 to detect failures
  • Virtual MAC format: 0000.0C07.ACxx (xx = HSRP group number in hex), e.g. group 1 → 0000.0C07.AC01
  • HSRPv2 expands MAC range to 0000.0C9F.F000–0000.0C9F.FFFF for more groups

VRRP (industry standard)

  • Uses Master/Backup terminology (same concept as Active/Standby)
  • Hello packets sent to multicast address 224.0.0.18
  • Virtual MAC format: 0000.5E00.01xx (xx = VRRP group ID in hex), e.g. group 121 → 0000.5E00.0179

Sign up for free to take 5 quiz questions on this topic

Previous
Next  | 3.7.1 Initial router configuration and static routes
All rights reserved ©2016 - 2026 Achievable, Inc.

Router redundancy in an Ethernet LAN using First Hop Redundancy Protocols (FHRPs)

The need for router redundancy

Routers let hosts on an Ethernet LAN reach other networks and the Internet. But what happens if the router fails? In many environments (businesses, schools, libraries, banks), a router outage can stop Internet-dependent work. For many organizations - especially in the financial sector - that kind of downtime isn’t acceptable.

A common first idea is to add a second router as a backup. That’s the right direction, but simply adding a backup router introduces a key problem: hosts still need a single, reliable default gateway address.

 

In the image above, there are two routers:

  • R1 is the primary router and the default gateway for hosts in the 192.168.1.0/24 LAN.
  • R2 is the backup router that should take over as the default gateway if R1 fails.

Now let’s walk through what happens when R1 fails.

 

When R1 fails, hosts in the 192.168.1.0/24 network lose Internet access even though R2 is still up. The reason is simple: the hosts are configured to use R1’s GigabitEthernet0/0 IP as their default gateway (192.168.1.1).

However:

  • R1 Gi0/0 = 192.168.1.1 (the configured default gateway on the hosts)
  • R2 Gi0/0 = 192.168.1.2

R2 can’t just “become” 192.168.1.1 while R1 is using it, because that would create a Duplicate IP Address Conflict. You cannot have duplicate IP addresses existing within the same IP network. A helpful analogy is phone numbers: if multiple phones in the same area code had the same number, which phone should ring?

So the core issue is this: hosts are pointing to a gateway IP address that no longer exists when R1 fails, and the backup router can’t safely use that same IP address under normal conditions.

Why common workarounds aren’t acceptable

This situation creates a real conundrum. There are workarounds, but they’re not ideal:

  • You could configure half the hosts to use R1 as their default gateway and the other half to use R2. But if either router fails, half the network loses Internet access.
  • You could manually change every host’s default gateway to R2’s IP address after a failure. On a large network with hundreds of hosts, this is impractical, causes prolonged downtime, and requires significant effort to coordinate.

Those two options listed above are not acceptable in a modern network, especially where mission critical data must be routed to other networks or out to the Internet.

The best-practice solution: FHRPs

The best-practice solution is to implement a First Hop Redundancy Protocol (FHRP) between R1 and R2.

An FHRP solves the default gateway problem by letting the routers share:

  • a virtual IP address (used by hosts as the default gateway)
  • a virtual MAC address (so hosts don’t need to update ARP entries during failover)

With an FHRP in place:

  • The routers operate in Active/Standby mode for the virtual IP.
    • The active router forwards traffic and handles gateway duties.
    • The standby router monitors the active router and takes over if it detects a failure.
  • Each router’s physical interface still has its own unique IP address in the LAN (separate from the virtual IP).

Because the virtual MAC address stays consistent, hosts typically don’t need to relearn ARP information when the standby router takes over. That’s what makes the failover process seamless.

When an active router fails, the standby router assumes the active role and immediately sends a Gratuitous ARP (GARP) — which is an unrequested ARP response broadcasted to the network to announce or update an IP-to-MAC mapping.

Even though the virtual MAC address remains identical, this GARP is critical because network switches need to update their MAC address tables. The GARP is not for the hosts, it’s for the switches connected to the routers.

Here is exactly why this happens:

  • The physical path changes: Before the failure, the virtual MAC was reachable via the switch port connected to R1 (Active). After the failure, that same virtual MAC must now be reached via the switch port connected to R2 (Standby).

  • Updating the forwarding table: By broadcasting the GARP, the standby router forces all intervening switches to update their MAC address tables. The switches instantly re-bind the virtual MAC address to the new physical port leading to the standby router.

Without this GARP, switches would continue sending traffic toward the failed router’s port until their MAC table entries naturally timed out (which usually takes 5 minutes), causing severe data loss.

There are two common protocols used today that perform this function.

The Hot Standby Router Protocol (HSRP)

The Hot Standby Router Protocol (HSRP) is Cisco’s proprietary FHRP. It allows one router to be active (forwarding IP traffic and responding to ARP requests from hosts) while another router stays in standby, ready to take over if the active router goes down.

To coordinate failover, the two routers send Hello messages to each other over the directly connected LAN link. These messages act as keepalives and help each router detect whether the other has failed.

The virtual IP address configured on both the active and standby routers is the address the hosts use as their default gateway.

  • HSRP uses multicast address 224.0.0.102 as the destination address in its hello messages.

  • The format of the HSRP virtual MAC address is 0000.0C07.ACxx, where xx is the hexadecimal value of the HSRP group number. For example, group 1 uses 0000. 0C07. AC01.

For HSRP version 2, the MAC address range expands to 0000.0C9F.F000 through 0000.0C9F.FFFF to accommodate more groups.

Virtual Router Redundancy Protocol (VRRP)

The Virtual Router Redundancy Protocol (VRRP) is an industry standard FHRP. It provides the same basic functionality as HSRP. The main terminology difference is that VRRP uses:

  • Master/Backup instead of Active/Standby

These terms describe the same roles: one router forwards traffic as the gateway, and the other is ready to take over if the first fails.

VRRP uses the destination multicast address 224.0.0.18 to send its hello packets.

The VRRP virtual MAC address follows the IEEE 802 format: 0000.5E00.01xx, where xx is the VRRP group ID in hexadecimal. For example, group 121 uses 0000.5E00.0179.

Key points

The default gateway problem

  • Single router = single point of failure; hosts lose Internet access if it goes down, even with a backup router present
  • Hosts rely on a configured default gateway IP (e.g. R1’s 192.168.1.1); backup router (R2) can’t simply reuse that IP — causes a duplicate IP address conflict
  • Unacceptable workarounds: splitting hosts between two gateways (half lose access on failure) or manually reconfiguring every host’s gateway after failure (impractical at scale)

First Hop Redundancy Protocols (FHRPs)

  • Solve the problem by having routers share a virtual IP (used as default gateway) and virtual MAC address
  • Routers operate in Active/Standby roles — active forwards traffic, standby monitors and takes over on failure
  • Each router keeps its own unique physical IP; virtual MAC stays constant so hosts don’t need to relearn ARP entries
  • On failover, new active router sends a Gratuitous ARP (GARP) — not for hosts, but to force switches to update MAC address tables and re-map the virtual MAC to the new port (avoids ~5 min delay from MAC table timeout)

HSRP (Cisco proprietary)

  • Uses Active/Standby terminology
  • Routers exchange Hello messages via multicast address 224.0.0.102 to detect failures
  • Virtual MAC format: 0000.0C07.ACxx (xx = HSRP group number in hex), e.g. group 1 → 0000.0C07.AC01
  • HSRPv2 expands MAC range to 0000.0C9F.F000–0000.0C9F.FFFF for more groups

VRRP (industry standard)

  • Uses Master/Backup terminology (same concept as Active/Standby)
  • Hello packets sent to multicast address 224.0.0.18
  • Virtual MAC format: 0000.5E00.01xx (xx = VRRP group ID in hex), e.g. group 121 → 0000.5E00.0179

More from IP connectivity

  • Calculating networks and hosts (Subnetting)
  • Routers and IPv4 routing fundamentals
  • Static routing
  • Static vs. dynamic routing and OSPF fundamentals