HSRP VRRP GLBP

What is HSRP

HSRP (Hot Standby Router Protocol) is a redundancy protocol developed by Cisco Systems to provide high availability for default gateways in a network. It allows two or more routers (or Layer-3 switches) to work together as a group and present a single virtual IP address and virtual MAC address to end devices. From the user’s point of view, there is only one gateway, but behind the scenes multiple routers are ready to take over if one fails. This prevents network downtime when the main router goes down.

In an HSRP group, one router is elected as the Active router and another as the Standby router. The Active router forwards all traffic for the virtual IP address, while the Standby router stays ready to take control if the Active router fails. The routers continuously exchange hello messages (by default every 3 seconds) to check each other’s status. If the Standby router stops receiving hello messages from the Active router for a certain time (default 10 seconds), it assumes the Active router has failed and immediately becomes the new Active router. This process is automatic and usually takes only a few seconds, keeping the network running without user interruption.

HSRP works by using a virtual IP and virtual MAC address that are configured as the default gateway on client devices. Even if the physical router changes (Active to Standby), the virtual IP and MAC remain the same, so PCs and servers do not need to update their gateway settings. HSRP also uses a priority value (default 100) to decide which router becomes Active; the router with the higher priority wins. An optional feature called preemption allows a router with higher priority to take back the Active role when it comes online after a failure.

There are different versions of HSRP. HSRPv1 supports IPv4 and uses multicast address 224.0.0.2, while HSRPv2 supports IPv6 and larger group numbers and uses multicast address 224.0.0.102. HSRP can also be combined with tracking, where the router monitors important interfaces (like WAN links). If a tracked interface goes down, the router can lower its priority so another router becomes Active, improving overall network reliability.

In simple terms, HSRP creates a backup gateway. One router works actively, another waits in standby, and if the active one fails, the standby router takes over automatically using the same IP address. This makes HSRP very important in company and enterprise networks where continuous internet and internal network access are critical.

Why Need HSRP in Company Network

HSRP is needed in a company network to provide high availability and reliability for the default gateway, which is one of the most critical points in any network. In most office networks, all computers, servers, and IP phones use a single router or Layer-3 switch as their gateway to reach other networks and the internet. If that gateway device fails due to hardware fault, power issue, or maintenance, the entire company network can lose connectivity. HSRP prevents this single point of failure by allowing two or more routers to share one virtual gateway IP address, so that if the active router goes down, a standby router automatically takes over without users noticing any interruption.

With HSRP, business operations remain continuous because applications such as email, cloud services, ERP systems, VoIP phones, and video conferencing do not disconnect when a router fails. This is especially important for companies that depend on 24/7 connectivity. HSRP also improves network stability during maintenance, because network administrators can take one router offline for upgrades while the other router continues to forward traffic. Without HSRP, changing or restarting a gateway device would cause downtime and require manual reconfiguration of client gateway settings, which is risky and time-consuming.

In simple terms, HSRP is needed in company networks to avoid gateway failure, ensure nonstop connectivity, reduce downtime, and protect business productivity. It creates a backup router that automatically takes over, so users always have a working gateway even if one device fails

What is VRRP

VRRP (Virtual Router Redundancy Protocol) is a standard gateway redundancy protocol used in computer networks to ensure high availability and uninterrupted connectivity for end devices. It allows two or more routers to form a logical group called a virtual router, which is identified by a shared virtual IP address (VIP) and virtual MAC address. Hosts on the network use this virtual IP as their default gateway instead of a physical router address. Within the VRRP group, one router is elected as the Master based on priority value, and it actively forwards traffic, while the remaining routers stay in Backup mode and monitor the Master’s status. The Master router sends periodic advertisement messages to confirm it is operational. If these advertisements stop due to router failure, power loss, or link issues, a Backup router with the highest priority immediately takes over the role of Master and assumes control of the virtual IP and MAC address. This failover process is automatic and usually happens within a few seconds, so users experience little or no network disruption.

VRRP is defined by open standards (RFC 3768 for IPv4 and RFC 5798 for IPv6), making it vendor-independent and widely supported across different networking devices. It improves network reliability by eliminating the single point of failure at the default gateway, which is critical in enterprise, campus, and data center networks. VRRP also supports features such as priority-based election, preemption (allowing a higher-priority router to regain Master status when it comes back online), and interface tracking (reducing priority if a monitored link fails). Because end devices do not need any special configuration and remain unaware of the router switch-over, VRRP provides a transparent, simple, and effective solution for achieving high availability and fault tolerance in IP networks.

What is GLBP

GLBP (Gateway Load Balancing Protocol) is a Cisco pr oprietary redundancy and load-balancing protocol designed to provide both high availability and traffic load sharing for default gateways in a network. Unlike other gateway redundancy protocols that use only one active router and keep others on standby, GLBP allows multiple routers to actively forward traffic at the same time while still protecting against router failure. It creates a single virtual gateway IP address that hosts use as their default gateway, but behind this virtual gateway, several routers share the forwarding responsibility.

In GLBP, one router is elected as the Active Virtual Gateway (AVG). The AVG is responsible for assigning virtual MAC addresses to the other routers in the group, which are called Active Virtual Forwarders (AVFs). Each AVF owns a virtual MAC address and forwards traffic for clients mapped to it. When a host sends an ARP request for the default gateway IP, the AVG responds with one of the virtual MAC addresses based on a load-balancing algorithm (such as round-robin, weighted, or host-dependent). This way, different clients use different routers as their gateway, achieving true load balancing instead of leaving backup routers idle.

GLBP also provides strong fault tolerance. If one AVF router fails, another router in the group automatically takes over its virtual MAC address and continues forwarding traffic without requiring hosts to change their default gateway configuration. If the AVG itself fails, another router with the next highest priority becomes the new AVG and manages the group. GLBP supports features such as priority-based election, preemption, and interface tracking (where a router’s priority can decrease if a critical link goes down).

In summary, GLBP is an advanced gateway redundancy protocol that not only prevents a single point of failure at the default gateway but also efficiently uses multiple routers at the same time to balance traffic load. It is commonly used in enterprise networks where both high availability and optimal bandwidth utilization are required.

GLBP supports different types of load balancing

GLBP supports different types of load balancing to distribute network traffic across multiple routers. GLBP was developed by Cisco and it allows several routers to forward packets at the same time, improving gateway performance and availability.

Types of GLBP Load Balancing

1. Round-Robin Load Balancing
In this method, the Active Virtual Gateway (AVG) assigns different virtual MAC addresses to each host in sequence. Each router (called Active Virtual Forwarder – AVF) gets traffic from different clients one after another. This distributes traffic equally across all routers.

2. Weighted Load Balancing
In weighted load balancing, traffic is distributed based on the weight value assigned to each router. Routers with higher weight handle more traffic, while routers with lower weight handle less traffic. This is useful when routers have different performance or capacity.

3. Host-Dependent Load Balancing
In this method, a specific host is always mapped to the same virtual MAC address and router. This ensures the same client always uses the same gateway router, which is helpful for maintaining session consistency.

Summary:
GLBP provides three load balancing methods: Round-Robin, Weighted, and Host-Dependent. These methods help distribute traffic across multiple routers while still providing gateway redundancy.

Why Need GLBP In Company Network

GLBP (Gateway Load Balancing Protocol) is needed in a company network to provide both high availability and load balancing for the default gateway, which is critical for business continuity and performance. In many company environments, all users and servers depend on a single gateway router to reach other networks and the internet. If that gateway fails, the entire office or data center can lose connectivity, causing downtime, productivity loss, and possible financial impact. Traditional redundancy protocols keep one router active and others idle, but GLBP allows multiple routers to be used simultaneously, making better use of network resources.

One major reason companies use GLBP is to avoid a single point of failure while also improving traffic distribution. GLBP shares the gateway load across multiple routers by assigning different virtual MAC addresses to clients, so network traffic is evenly balanced. This prevents one router from becoming overloaded while another sits unused. If one router or link fails, GLBP automatically shifts traffic to the remaining routers without requiring any change on user devices, so employees and applications continue working without interruption.

GLBP is especially useful in enterprise and campus networks where there are many users, VoIP phones, servers, and cloud applications generating heavy traffic. It improves network performance, reliability, and scalability by ensuring that gateway services remain available and that bandwidth is efficiently utilized. In short, companies need GLBP to maintain nonstop network access, reduce downtime risk, optimize router usage, and provide a stable and resilient network infrastructure for business operations.

Comparison between HSRP Vs VRRP Vs GLBP

  • HSRP and VRRP are very similar. Both have one active and one standby router at any given time.
  • GLBP is the only one which provides load balancing of traffic among the devices in the group.
  • HSRP and GLBP are Cisco proprietary.
  • VRRP is an IETF standard (RFC 3768) so it is supported by all router vendors.
  • If you have a mixed vendor environment (e.g Cisco, Juniper etc) than its better to use VRRP.
  • All protocols support more than 2 routers in a group.
  • All protocols support tracking. This means that you can track an interface of the router (or other network conditions) and if something goes wrong (e.g interface goes down or a destination tracked host does not respond) then a failover action is triggered.
  • HSRP and GLBP support IPv6. The original VRRP does not support IPv6 but you need a special version of VRRPv3 for this

 

HSRPVRRPGLBP
Cisco ProprietaryStandardizedCisco Proprietary
Active and Standby mode onlyActive and Standby mode onlyMultiple routers pass traffic thus achieving load balancing
Must configure a separate IP for the Virtual.Virtual IP can be same as physical IP of one of the routersMust configure a separate IP for the Virtual.
Default priority = 100Default priority = 100Default priority = 100
Higher priority (above 100) makes router active. Otherwise, higher IP makes router active.Higher priority (above 100) makes router active. Otherwise, higher IP makes router active.Higher priority (above 100) makes router primary forwarder. Otherwise, higher IP makes router primary forwarder.
Tracking supported (e.g interface state, routing info, reachability of remote host etc)Tracking supported (e.g interface state, routing info, reachability of remote host etc)Tracking supported (e.g interface state, routing info, reachability of remote host etc)
Supports IPv6No support for IPv6 on the original VRRP implementation. However, VRRPv3 (RFC 5798) now supports it.Supports IPv6
Supports timer and delay adjustments for failoverSupports timer and delay adjustments for failoverSupports timer and delay adjustments for failover

HSRP vs VRRP vs GLBP are first-hop redundancy protocols (FHRP) used in company networks. These protocols provide default gateway redundancy, meaning if one router fails, another router automatically takes over so the network continues working without interruption.


1. HSRP (Hot Standby Router Protocol)

  • Developed by: Cisco
  • Type: Cisco proprietary protocol
  • Working:
    In HSRP, two or more routers form a group. One router becomes the Active router, and another becomes the Standby router. The active router handles all traffic for the virtual gateway IP. If the active router fails, the standby router immediately takes over.
  • Default port: UDP 1985
  • Load balancing: Not supported (only one active router).

Example:
If Router-1 fails, Router-2 automatically becomes active and continues forwarding traffic.


2. VRRP (Virtual Router Redundancy Protocol)

  • Standard: Defined by Internet Engineering Task Force
  • Type: Open standard protocol
  • Working:
    VRRP works similarly to HSRP. Multiple routers share a virtual IP address, and one router becomes the Master router while others are Backup routers. If the master fails, a backup router takes over the gateway function.
  • Default port: IP protocol number 112
  • Load balancing: Not supported by default.

Example:
In a company network with routers from different vendors, VRRP is used because it is vendor-independent.


3. GLBP (Gateway Load Balancing Protocol)

  • Developed by: Cisco
  • Type: Cisco proprietary protocol
  • Working:
    GLBP allows multiple routers to share traffic simultaneously. One router becomes the Active Virtual Gateway (AVG) and others become Active Virtual Forwarders (AVF). The AVG distributes different virtual MAC addresses to hosts so traffic is balanced across multiple routers.
  • Default port: UDP 3222
  • Load balancing: Supported.

Example:
If three routers are configured, all three can forward traffic at the same time, improving network performance.


Comparison Table

FeatureHSRPVRRPGLBP
Full FormHot Standby Router ProtocolVirtual Router Redundancy ProtocolGateway Load Balancing Protocol
StandardCisco ProprietaryOpen StandardCisco Proprietary
Router RolesActive / StandbyMaster / BackupAVG / AVF
Load BalancingNoNoYes
Vendor SupportCisco onlyMulti-vendorCisco only
Default PortUDP 1985IP Protocol 112UDP 3222
Gateway RedundancyYesYesYes
Traffic DistributionSingle active routerSingle master routerMultiple routers

Simple Summary:

  • HSRP: Cisco redundancy protocol (Active–Standby).
  • VRRP: Standard redundancy protocol supported by multiple vendors.
  • GLBP: Cisco protocol that provides redundancy + load balancing at the same time.

How HSRP Work

What is HSRP?

Hot Standby Router Protocol (HSRP) is a Cisco proprietary FHRP protocol that enables two or more routers to work together, acting as a highly available default gateway to local hosts. HSRP operates in an active/standby model and implements the concept of a Virtual IP address (VIP), as shown in the diagram below. 

				
					R1(config)# interface GigabitEthernet0/1
R1(config-if)# standby 1 ip 10.1.1.1
R1(config-if)# standby 1 priority 110
				
			
				
					0000.0C07.AC01
				
			
				
					The MAC address for Group 5
0000.0C07.AC05

The MAC address for Group 10
000.0C07.AC0A

The MAC address for Group 150
0000.0C07.AC96

The MAC address for Group 255
0000.0C07.ACFF
				
			
				
					Microsoft Windows [Version 10.0.22631.4317]
(c) Microsoft Corporation. All rights reserved.
C:\Users\ivan> arp -a
Interface: 10.1.1.150 --- 0x7
  Internet Address      Physical Address      Type
  10.1.1.1              00-00-0c-07-ac-01     dynamic
  10.1.1.32             70-da-01-aa-3c-3f     dynamic
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static
				
			
				
					Router(config-if)# standby 1 preempt
				
			
				
					IMPORTANT: Preemption is disabled by default in HSRP.


				
			

How VRRP Work

The Virtual Router Redundancy Protocol (VRRP) is the second first-hop redundancy protocol (FHRP) we will examine in this course section. If you don’t know why a resilient network needs a FHRP protocol, I would suggest going through our lesson on FHRP first. Also, make sure to go through the lessons in order so that you are familiar with HSRP before going into VRRP and the next protocol we are going to examine – GLBP.

What is VRRP?

Hosts on the LAN, such as servers, PCs, laptops, mobile phones, etc., typically have a single default gateway address. This introduces a single point of failure in the network. If the default gateway becomes unavailable, the hosts can only communicate within their local LAN and lose access to the rest of the network. Similarly to HSRP, VRRP provides a solution to this problem.

VRRP allows multiple routers to operate as a single virtual router, which hosts can then use as their default gateway.

				
					R1# show run interface e0/0
interface Ethernet0/0
 ip address 10.1.1.1 255.255.255.0
 vrrp 1 ip 10.1.1.1
end
				
			
				
					R1(config-if)# vrrp 1 priority ?
  <1-254>  Priority level(default 100)
				
			
				
					R1# show run int e0/0
interface Ethernet0/0.20
 encapsulation dot1Q 20
 ip address 10.1.1.1 255.255.255.0
 vrrp 1 ip 10.1.1.
				
			
				
					R1# show vrrp
Ethernet0/0 - Group 1
  State is Master
  Virtual IP address is 10.1.1.1
  Virtual MAC address is 0000.5e00.0101
  Advertisement interval is 1.000 sec
  Preemption enabled
  Priority is 255
  Master Router is 10.1.1.1 (local), priority is 255
  Master Advertisement interval is 1.000 sec
  Master Down interval is 3.003 sec
  FLAGS: 1/1
				
			

Gateway Load Balancing Protocol (GLBP)

 

Network Loade Balaencing

Server Loade Balaencing

				
					interface Ethernet0/0
 glbp [group] ip [virtual address]
 glbp [group] priority [priority value]
				
			
				
					R1(config)# interface Ethernet0/0
 glbp 1 ip 10.1.1.1
 glbp 1 priority 120
				
			
				
					R2(config)# interface Ethernet0/0
 glbp 1 ip 10.1.1.1
 glbp 1 priority 110
				
			
				
					R3(config)# interface Ethernet0/0
 glbp 1 ip 10.1.1.1
 glbp 1 priority 100
				
			
				
					R1# show glbp brief
Interface   Grp  Fwd Pri State    Address         Active router   Standby router
Et0/0       1    -   120 Active   10.1.1.1        local           10.1.1.3
Et0/0       1    1   -   Active   0007.b400.0101  local           -
Et0/0       1    2   -   Listen   0007.b400.0102  10.1.1.3        -
Et0/0       1    3   -   Listen   0007.b400.0103  10.1.1.4 
				
			
				
					R2# show glbp brief
Interface   Grp  Fwd Pri State    Address         Active router   Standby router
Et0/0       1    -   110 Standby  10.1.1.1        10.1.1.2        local
Et0/0       1    1   -   Listen   0007.b400.0101  10.1.1.2        -
Et0/0       1    2   -   Active   0007.b400.0102  local           -
Et0/0       1    3   -   Listen   0007.b400.0103  10.1.1.4 
				
			
				
					R3# show glbp brief
Interface   Grp  Fwd Pri State    Address         Active router   Standby router
Et0/0       1    -   100 Listen   10.1.1.1        10.1.1.2        10.1.1.3
Et0/0       1    1   -   Listen   0007.b400.0101  10.1.1.2        -
Et0/0       1    2   -   Listen   0007.b400.0102  10.1.1.3        -
Et0/0       1    3   -   Active   0007.b400.0103  local  
				
			
				
					R1# show glbp brief
Interface   Grp  Fwd Pri State    Address         Active router   Standby router
Et0/0       1    -   120 Active   10.1.1.1        local           10.1.1.3
Et0/0       1    1   -   Active   0007.b400.0101  local           -
Et0/0       1    2   -   Listen   0007.b400.0102  10.1.1.3        -
Et0/0       1    3   -   Listen   0007.b400.0103  10.1.1.4
				
			
				
					R2# show glbp brief
Interface   Grp  Fwd Pri State    Address         Active router   Standby router
Et0/0       1    -   110 Standby  10.1.1.1        10.1.1.2        local
Et0/0       1    1   -   Listen   0007.b400.0101  10.1.1.2        -
Et0/0       1    2   -   Active   0007.b400.0102  local           -
Et0/0       1    3   -   Listen   0007.b400.0103  10.1.1.4   
				
			
				
					R3# show glbp brief
Interface   Grp  Fwd Pri State    Address         Active router   Standby router
Et0/0       1    -   100 Listen   10.1.1.1        10.1.1.2        10.1.1.3
Et0/0       1    1   -   Listen   0007.b400.0101  10.1.1.2        -
Et0/0       1    2   -   Listen   0007.b400.0102  10.1.1.3        -
Et0/0       1    3   -   Active   0007.b400.0103  local
				
			

Server Loade Balaencing

Basic Configuration HSRP, VRRP, and GLBP

HSRP Configuration
R1

interface Ethernet0/1
description LAN Interface of Active Router
ip address 192.168.1.1 255.255.255.0
standby 1 ip 192.168.1.254 <—- Create HSRP Group 1 and assign Virtual IP
standby 1 priority 101 <—- Assign priority above 100 to make this the primary router
standby 1 preempt <—- Makes router active if it has higher priority

R2

interface Ethernet0/1
description LAN Interface of Standby Router
ip address 192.168.1.2 255.255.255.0
standby 1 ip 192.168.1.254 <—- Create HSRP Group 1 and assign Virtual IP
standby 1 preempt <—- Makes router active if it has higher priority

 

 

VRRP Configuration
R1

interface Ethernet0/1
description LAN Interface of Active Router
ip address 192.168.1.1 255.255.255.0
vrrp 1 ip 192.168.1.254 <—- Create VRRP Group 1 and assign Virtual IP
vrrp 1 priority 101 <—- Assign priority above 100 to make this the primary router
vrrp 1 preempt <—- Makes router active if it has higher priority

R2

interface Ethernet0/1
description LAN Interface of Standby Router
ip address 192.168.1.2 255.255.255.0
vrrp 1 ip 192.168.1.254 <—- Create VRRP Group 1 and assign Virtual IP
vrrp 1 preempt <—- Makes router active if it has higher priority

 

 

GLBP Configuration
R1

interface Ethernet0/1
description LAN Interface of Primary Router
ip address 192.168.1.1 255.255.255.0
glbp 1 ip 192.168.1.254 <—- Create GLBP Group 1 and assign Virtual IP
glbp 1 priority 101 <—- Assign priority above 100 to make this the primary router
glbp 1 preempt <—- Makes router active if it has higher priority
glbp 1 load-balancing round-robin <—- Configure round-robin balancing of traffic

R2

interface Ethernet0/1
description LAN Interface of Secondary Router
ip address 192.168.1.2 255.255.255.0
glbp 1 ip 192.168.1.254 <—- Create GLBP Group 1 and assign Virtual IP
glbp 1 preempt <—- Makes router active if it has higher priority
glbp 1 load-balancing round-robin <—- Configure round-robin balancing of traffic

Top interview questions and answers about HSRP, VRRP, and GLBP

1. What is HSRP?

Answer:
HSRP (Hot Standby Router Protocol) is a first-hop redundancy protocol developed by Cisco that provides gateway redundancy in a network. It uses an Active router and a Standby router. The active router handles traffic, and if it fails, the standby router automatically takes over.


2. What is VRRP?

Answer:
VRRP (Virtual Router Redundancy Protocol) is an open standard redundancy protocol defined by the Internet Engineering Task Force. It allows multiple routers to share a virtual IP address where one router becomes Master and the others become Backup routers.


3. What is GLBP?

Answer:
GLBP (Gateway Load Balancing Protocol) is a Cisco proprietary protocol that provides both redundancy and load balancing. Multiple routers can forward traffic simultaneously using Active Virtual Gateway (AVG) and Active Virtual Forwarder (AVF) roles.


4. Why are HSRP, VRRP, and GLBP needed in a company network?

Answer:
They are used to provide default gateway redundancy. If the main router fails, another router automatically takes over, preventing network downtime and ensuring continuous communication.


5. What is the main difference between HSRP and VRRP?

Answer:
HSRP is Cisco proprietary, while VRRP is an open standard supported by multiple vendors. Both provide gateway redundancy, but VRRP uses Master/Backup roles, while HSRP uses Active/Standby roles.


6. Which protocol supports load balancing?

Answer:
Only GLBP supports load balancing. HSRP and VRRP allow only one router to actively forward traffic.


7. What ports or protocol numbers are used?

  • HSRP: UDP port 1985
  • VRRP: IP protocol number 112
  • GLBP: UDP port 3222

8. What is a virtual IP address?

Answer:
A virtual IP address is a shared gateway IP configured on multiple routers. End devices use this IP as their default gateway, while the redundancy protocol manages which router actually forwards traffic.


9. What happens if the active router fails in HSRP?

Answer:
If the active router fails, the standby router automatically becomes active and starts forwarding traffic without changing the default gateway IP.


10. What are the router roles in each protocol?

ProtocolRoles
HSRPActive / Standby
VRRPMaster / Backup
GLBPAVG / AVF

11. Which protocol is best for multi-vendor networks?

Answer:
VRRP is best because it is an open standard and works with routers from different vendors.


12. What is AVG and AVF in GLBP?

Answer:

  • AVG (Active Virtual Gateway): Assigns virtual MAC addresses to routers.
  • AVF (Active Virtual Forwarder): Routers that forward traffic for clients.