VRRP (Virtual Router Redundancy Protocol) – Complete Overview

1. Purpose and Overview

VRRP is an open-standard First Hop Redundancy Protocol (FHRP) providing gateway redundancy for hosts. It eliminates single points of failure by allowing a backup router to take over seamlessly if the primary router fails.

VRRP vs. HSRP

AspectVRRP (RFC 5798)HSRP (Cisco proprietary)
StandardIETF Open StandardCisco Only
Versionsv2 (IPv4), v3 (IPv4 & IPv6)v1, v2 (IPv4/IPv6)
Virtual IPUsually matches Master's real IPNot assigned to real interface
Virtual MAC00-00-5E-00-01-XX00-00-0C-07-AC-XX
Default timers1 sec Advertisement3 sec Hello

2. VRRP Terminology

  • Master Router: Currently forwards traffic for the virtual IP.
  • Backup Router: Ready to take over if Master fails.
  • VRID: Virtual Router Identifier.
  • Virtual IP: Gateway IP for clients.

3. VRRP Operation and Election

  • Priority range: 1–254 (default 100).
  • Highest priority router becomes Master.
  • Supports preemption by default.

4. VRRP States

StateDescription
InitializeNo VRRP participation yet
BackupListening for advertisements
MasterForwarding for virtual IP, sending advertisements

5. Timers and Advertisements

  • Advertisement Interval: Default 1 second.
  • Master Down Interval: Typically 3× Advertisement Interval plus skew time.

6. Failover Behavior

If Master fails, Backup assumes Master role with minimal disruption.

7. Authentication (VRRPv2 only)

Optional plaintext/simple authentication (not secure; recommended only in trusted networks).

8. Load-Sharing Techniques

Multiple VRRP groups per subnet allow load distribution.

9. Example VRRP Configuration (Cisco IOS)

interface g0/1
 ip address 192.168.10.2 255.255.255.0
 vrrp 1 ip 192.168.10.254
 vrrp 1 priority 120
 vrrp 1 preempt

When to Use VRRP

  • Multi-vendor environments needing an open standard.
  • Networks needing simple gateway redundancy.

GLBP (Gateway Load Balancing Protocol) – Conceptual Overview

1. Purpose and Overview

GLBP is a Cisco proprietary FHRP providing both gateway redundancy and automatic load balancing among multiple routers.

GLBP vs. HSRP/VRRP

FeatureHSRP/VRRPGLBP
RedundancyYesYes
Load balancingNoYes
Virtual MACsOne per groupMultiple per group (one per AVF)

2. GLBP Terminology

  • AVG (Active Virtual Gateway): Assigns virtual MACs and manages the GLBP group.
  • AVF (Active Virtual Forwarder): Forward traffic assigned by AVG.

3. Load-Balancing Methods

  • Round-Robin: Sequential MAC assignment.
  • Host-Dependent: Persistent MAC-to-host assignment.
  • Weighted: Based on manually set weights.

4. Timers and Failover

  • Hello: 3 seconds default.
  • Hold: 10 seconds default.

5. Authentication

GLBP supports secure MD5 authentication:

glbp 1 authentication md5 key-string SECRET

6. Example GLBP Configuration (Cisco IOS)

interface g0/1
 ip address 192.168.20.2 255.255.255.0
 glbp 1 ip 192.168.20.254
 glbp 1 priority 120
 glbp 1 preempt
 glbp 1 load-balancing round-robin
 glbp 1 authentication md5 key-string SECRET

When to Use GLBP

  • When both redundancy and load balancing are required.
  • Large LANs with multiple redundant gateways.

Summary Table

FeatureHSRPVRRPGLBP
StandardCiscoOpen StandardCisco
Load BalanceNoNoYes
PreemptionOptionalDefaultOptional
AuthenticationPlain/MD5Plain/simpleMD5
Virtual MACs1 per group1 per groupMultiple per group

VRRP & GLBP Quiz

1. What is the primary purpose of VRRP?

Correct answer is C. VRRP ensures gateway redundancy by allowing backup routers to take over if the master fails.

2. Which of the following distinguishes VRRP from HSRP?

Correct answer is A. VRRP is an open standard (RFC 5798), whereas HSRP is proprietary to Cisco.

3. How is the VRRP Master router selected?

Correct answer is D. The router with the highest priority becomes Master; if priorities tie, the highest IP wins.

4. What is the default advertisement interval for VRRP?

Correct answer is B. VRRP advertisements are sent every 1 second by default to signal Master status.

5. What is the VRRP virtual MAC address format?

Correct answer is A. VRRP uses the MAC prefix 00-00-5E-00-01 followed by the VRID in hex as the virtual MAC address.

6. Which VRRP version supports both IPv4 and IPv6?

Correct answer is D. VRRPv3 supports both IPv4 and IPv6, while VRRPv2 supports IPv4 only.

7. What Cisco protocol provides gateway redundancy and true load balancing?

Correct answer is A. GLBP is Cisco proprietary and supports both redundancy and active load balancing.

8. In GLBP, what is the role of the Active Virtual Gateway (AVG)?

Correct answer is B. The AVG assigns virtual MACs to AVFs and manages group operations.

9. Which GLBP load balancing method assigns a different virtual MAC to each client in a rotating sequence?

Correct answer is C. Round-Robin assigns virtual MAC addresses sequentially to clients, distributing load evenly.

10. What command is used to configure MD5 authentication for GLBP group 1?

Correct answer is A. The proper Cisco IOS command for GLBP MD5 authentication specifies the group number.

← Back to Home