Free tech learning for everyone, from basics to pro

Transport Network DesignNetworking SecurityIntermediate

Layer 3 redundancy: HSRP, VRRP and GLBP

In short: Hosts have one default gateway, so if that router fails they are cut off. First hop redundancy protocols let two or more routers share a virtual IP and MAC. HSRP (Cisco) and VRRP (open standard) use one active router with backups; GLBP (Cisco) also shares the load.

The gateway problem

Every host is configured with one default gateway address. If the router behind that address fails, hosts can't leave their subnet, even if a second router is sitting right next to it. First hop redundancy protocols (FHRPs) fix this by letting several routers answer for one virtual IP address and virtual MAC address.

Two routers share one virtual gatewayInternet / WANR1 .2active, priority 120R2 .3standby, priority 100Virtual IP .1Hostsgateway = 192.168.1.1
Figure 1. Hosts point at the virtual IP. The active router answers for it; if it fails, the standby takes over the same IP.

HSRP: Hot Standby Router Protocol (Cisco)

  • Roles: one active router forwards traffic; one standby router is ready to take over; others listen.
  • Election: highest priority (0 to 255, default 100) wins; a tie goes to the highest interface IP address.
  • Preemption is off by default: turn it on so a recovered, higher-priority router takes back the active role.
  • States: init, learn, listen, speak, standby and active. Hellos are sent in speak, standby and active.

VRRP: Virtual Router Redundancy Protocol (open standard)

  • An IETF standard (current version VRRPv3), so it works between different vendors.
  • Roles: one master forwards traffic; backup routers wait.
  • Election: highest priority (1 to 254, default 100) wins; a tie goes to the highest IP. A router that actually owns the virtual IP address gets priority 255 and always becomes master.
  • Preemption is on by default.

GLBP: Gateway Load Balancing Protocol (Cisco)

HSRP and VRRP leave the backup routers idle. GLBP uses them too: one virtual IP, but several virtual MAC addresses.

  • The active virtual gateway (AVG) answers ARP requests for the virtual IP, handing out a different virtual MAC to different hosts. A standby AVG waits to replace it.
  • Each active virtual forwarder (AVF) forwards traffic sent to its virtual MAC, so the load is shared (up to four forwarders).
  • Load-balancing methods: round-robin (default), weighted and host-dependent.

Comparison and configuration

HSRPVRRPGLBP
StandardCiscoOpen (IETF)Cisco
Forwarding routers1 active1 masterUp to 4 at once
Default priority100100100
Preempt by defaultNoYesNo (for the AVG)
! R1 (R2 is the same with its own IP, priority 100)
interface gigabitEthernet 0/1
 ip address 192.168.1.2 255.255.255.0
 standby 10 ip 192.168.1.1
 standby 10 priority 120
 standby 10 preempt
! VRRP equivalent:   vrrp 10 ip 192.168.1.1 / vrrp 10 priority 120
! GLBP equivalent:   glbp 10 ip 192.168.1.1 / glbp 10 load-balancing weighted

Real-world example: upgrading a hospital core without an outage

A hospital's ward networks use a pair of core switches as their default gateway. The two switches run HSRP for each VLAN, sharing a virtual IP address that every PC, workstation on wheels and printer uses as its gateway. Core switch A is active for half of the VLANs and switch B for the other half, so both carry traffic during normal operation.

When the network team needed to upgrade switch A's software, they lowered its HSRP priority during a quiet period so switch B became active for every VLAN, then rebooted switch A. Devices kept the same gateway address and noticed nothing beyond a sub-second pause. After the upgrade, preemption returned the original roles, and the team repeated the process for switch B the following night.

Practice

Which FHRP should you choose for a network with routers from two vendors?
VRRP, because it is an open standard.
R1 (priority 120) fails and recovers. HSRP preempt is not configured. Who is active?
R2 stays active, because HSRP preemption is off by default.
What makes GLBP different from HSRP and VRRP?
Several routers forward at once, sharing the load through different virtual MACs.

Key takeaways

  • FHRPs remove the default gateway as a single point of failure.
  • Hosts use a virtual IP shared by two or more routers.
  • HSRP (Cisco) and VRRP (open) use one forwarding router plus backups.
  • Highest priority wins; HSRP needs preempt configured, VRRP preempts by default.
  • GLBP adds load balancing across up to four routers.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.