Networks Training

  • About
  • My Books
  • SUGGESTED TRAINING
  • HOME
  • Cisco Networking
    • Cisco General
    • Cisco IOS
    • Cisco VPN
    • Cisco Wireless
  • Cisco ASA
    • Cisco ASA General
    • Cisco ASA Firewall Configuration
  • Certifications Training
    • CCNA Training
    • Cisco Certifications
    • I.T Training
  • General
    • General Networking
    • IP Telephony
    • Network Security
    • Product Reviews
    • Software
  • Cisco Routers
  • Cisco Switches
You are here: Home / Cisco Routers / HSRP Vs VRRP Vs GLBP Redundancy Protocols

HSRP Vs VRRP Vs GLBP Redundancy Protocols

Written By Harris Andrea

In this article we will discuss the similarities and differences between the 3 “First Hop Redundancy” protocols supported by Cisco devices. These are Hot Standby Router Protocol (HSRP), Virtual Router Redundancy Protocol (VRRP) and Gateway Load Balancing Protocol (GLBP).

The main purpose of the above protocols is to provide redundancy to the default gateway (router or Layer3 switch) in a LAN environment.

Usually in a LAN we configure a default gateway IP on all users’ computers in order to reach the Internet (or other networks).

What if this default gateway (which is usually a router) fails? This means that Internet connectivity will be lost for the whole network. The protocols we will discuss here provide automated switchover of the default gateway IP address to a second routing device so that to have uninterruptible connectivity in case the primary device breaks down.

Although the above is the most commonly used scenario, we can also use HSRP/VRRP/GLBP in conjunction with some other mechanisms and protocols (such as BGP for example) to implement ISP redundancy (Dual WAN connectivity).

However in this particular article we’ll just discuss a simple implementation of providing redundancy to two routers in a LAN and provide comparison of VRRP Vs HSRP Vs GLBP which are supported by Cisco.

Let’s see a simple router network deployment in a LAN which will be used as the base to our discussion:

hsrp vs vrrp vs glbp

In our simple network above, we want to provide redundancy to the border routers (R1 and R2) which connect users to the Internet. By configuring one of the redundancy protocols (HSRP, VRRP, GLBP) we can achieve just that.

Each router has its own IP configured to its LAN interface (192.168.1.1 on R1 and 192.168.1.2 on R2). However, a Virtual IP (192.168.1.254) will also exist which will serve as the default gateway for the whole LAN. No matter which router is active or if we have one failed router, the Virtual IP will still exist in order to route packets from the users.

Table of Contents

  • Basic Configuration of HSRP – VRRP – GLBP
    • HSRP Configuration
    • VRRP Configuration
    • GLBP Configuration
  • Comparison between HSRP Vs VRRP Vs GLBP
  • Which one to Choose
    • Related Posts

Basic Configuration of HSRP – VRRP – GLBP

Before moving into our comparison between the 3 protocols, let’s first see the basic configuration for each one:

MORE READING:  Redistribution Between Cisco EIGRP into OSPF and Vice Versa (Example)

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

Comparison between HSRP Vs VRRP Vs GLBP

Now let’s move to the main purpose of this article: To see similarities and differences between the 3 protocols. I’ll just state briefly some comparison points below and then use a table to compare more features.

  • 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.
MORE READING:  Cisco Router HSRP Configuration - Two Examples

Now let’s put some more comparison info in a table:

HSRP VRRP GLBP
Cisco Proprietary Standardized Cisco Proprietary
Active and Standby mode only Active and Standby mode only Multiple 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 routers Must configure a separate IP for the Virtual.
Default priority = 100 Default priority = 100 Default 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 IPv6 No support for IPv6 on the original VRRP implementation. However, VRRPv3 (RFC 5798) now supports it. Supports IPv6
Supports timer and delay adjustments for failover Supports timer and delay adjustments for failover Supports timer and delay adjustments for failover

Which one to Choose

If your network contains only Cisco devices, then I suggest to use HSRP. It works pretty well and is well supported. Now, if you have other vendors in your network or you are planning to install devices from other vendors in the future, then VRRP is the way to go.

Related Posts

  • How to Configure a Loopback Interface on Cisco Router & Switch
  • Comparison of Static vs Dynamic Routing in TCP/IP Networks
  • Cisco OSPF DR-BDR Election in Broadcast Networks – Configuration Example
  • How to Configure Port Forwarding on Cisco Router (With Examples)
  • Adjusting MSS and MTU on Cisco 800 routers for PPPoE over DSL

Filed Under: Cisco Routers

Download Free Cisco Commands Cheat Sheets

Enter your Email below to Download our Free Cisco Commands Cheat Sheets for Routers, Switches and ASA Firewalls.

We use Elastic Email as our marketing automation service. By submitting this form, you agree that the information you provide will be transferred to Elastic Email for processing in accordance with their Terms of Use and Privacy Policy. Also, you allow me to send you informational and marketing emails from time-to-time.

About Harris Andrea

Harris Andrea is an Engineer with more than two decades of professional experience in the fields of TCP/IP Networks, Information Security and I.T. Over the years he has acquired several professional certifications such as CCNA, CCNP, CEH, ECSA etc.

He is a self-published author of two books ("Cisco ASA Firewall Fundamentals" and "Cisco VPN Configuration Guide") which are available at Amazon and on this website as well.

Comments

  1. Oni says

    June 13, 2016 at 7:04 am

    Thank you! Really helpful

  2. naqibullah says

    September 9, 2019 at 5:12 am

    Thanks that was helpful.

  3. Harris Andrea says

    September 9, 2019 at 5:13 am

    You are welcome

  4. Larry DuBose says

    February 16, 2021 at 10:18 pm

    Why are you suggesting HSRP over GLBP?

  5. Harris Andrea says

    February 17, 2021 at 6:18 am

    Larry, I suggest HSRP because I have used it extensively in networks and its pretty solid and reliable. Also, I prefer all of my traffic to follow a pre-determined path (i.e through the active router of HSRP) instead of load-balanced in GLBP (load-balancing sometimes causes problems especially if you have a firewall upstream from the routers).

    Harris

  6. Mohamed Bangura says

    September 8, 2021 at 11:46 am

    Mr harris i need the whole configurations for firewall ASA 5506

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search this site

About Networks Training

We Provide Technical Tutorials and Configuration Examples about TCP/IP Networks with focus on Cisco Products and Technologies. This blog entails my own thoughts and ideas, which may not represent the thoughts of Cisco Systems Inc. This blog is NOT affiliated or endorsed by Cisco Systems Inc. All product names, logos and artwork are copyrights/trademarks of their respective owners.

Amazon Disclosure

As an Amazon Associate I earn from qualifying purchases.
Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.

Search

BLOGROLL

Tech21Century
Firewall.cx

Copyright © 2023 | Privacy Policy | Terms and Conditions | Hire Me | Contact | Amazon Disclaimer | Delivery Policy

132 shares