Filters:

  • Technologies

  • Instructors

  • An introduction to GLBP in Cisco IOS

    I have posted blogs dealing with HSRP and VRRP.  Today’s topic takes this idea a step beyond what is possible with those protocols by introducing the concept of Gateway Load Balancing Protocol (GLBP).  Let’s begin by viewing the network scenario I used for this blog:

    001-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 1

    GLBP is a Cisco proprietary protocol which was made available in 2005.  It is designed to be an improvement over the existing FHRPs – HSRP and VRRP – because it allows full utilization of router resources without having to create multiple groups, which is a limitation of HSRP and VRRP.  GLBP has the following functions:  Active Virtual Gateway (AVG) and Active Virtual Forwarder (AVF).  In a GLBP group, the members elect one of the routers to be the AVG.  The AVG assigns virtual MAC addresses to each member of the GLBP group.  If the AVG dies, one of the other members of the group will take over this functionality.

    An AVF is a gateway which assumes to role of forwarding packets that are sent to the virtual MAC address which is assigned to that AVF by the AVG.  GLBP then load balances among all the gateways that are active in this GLBP group using one of three load-balancing mechanisms.  The mechanisms are weighted load-balancing, host-dependent load-balancing, and round-robin load-balancing-which is the default.  In weighted load-balancing, a forwarding router is assigned load based upon the weight that it advertises.  In host-dependent load-balancing, an individual host will always use the same virtual MAC address as long as that MAC address is active in the GLBP group.  In round-robin load-balancing, an AVG responds to client ARP requests with the MAC address of the next available router (AVF) in the group, similar to a dealer dealing cards.

    You may also like:  What does aaa new-model do to your Cisco logins?

    Let’s examine a very basic configuration for the three GLBP routers shown in Figure 1.  Here are the relevant running configs of each:

    002-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 2

    003-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 3

     004-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 4 

    As shown in Figure 1, I want GLBP2 to win the role of AVG.  To make this happen, I used the priority command on GLBP2, which is displayed in Figure 3.  The default priority value is 100, so by setting GLBP2 to a higher value, it becomes the AVG.  With the configurations shown, note the output of show glbp on glbp2:

    005-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 5

    All three clients are configured with a default gateway IP address of 10.1.1.5, which also happens to be the virtual IP address configured in GLBP.  Now that the entire network is up and running, let’s examine the ARP information on each of our clients.  I have issued the ping 10.1.1.5 command on each client and received replies.  Take a look at what each client has learned:

    006-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 6

    You may also like:  How to modify the time display in Cisco IOS and Wireshark

    007-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 7

    008-An-introduction-to-GLBP-in-Cisco-IOS

    Figure 8

    As you can see, each client has an entry for the IP address of its default gateway of 10.1.1.5.  However, each client has a different MAC address stored for that IP address.  This is the result of the round-robin load balancing that is happening behind the scenes.   Also noteworthy is the fact that the AVG also participates in the forwarding of packets.  It does not just sit around and delegate the user load to the AVF routers.

    There is much more involved in fine-tuning GLBP in your network.  In this blog I just wanted to hit the very basics of initial configuration.  In future blogs I will explore how GLBP can track upstream destinations and adjust itself accordingly.  I hope you will tune in and enjoy those discussions as well.

    Until next time…

    Mark Jacob
    Cisco Instructor – Interface Technical Training
    Phoenix, AZ

    See what people are saying...

    1. Matt Markley

      From your description, it seems you have configured identical IP address on your two routers. Try assigning one of them an alternate address, such as 192.168.0.253. This should resolve the issue.

    2. Raja Mukhopadhyay

      I am trying to configure GLBP on GNS3. However, I face a small problem regarding the group members. Although I have two routers c3745 both configured to the glbp group 1 with virtual ip address 192.168.0.254 each router can see only itself as the active forwarder and not the other.

      Kindly help.

    3. Interface Technical Training

      Apologies, our images for this post are now displaying again – Thanks

    4. PAUL LAWLEY-WALKER

      Hello Mark, I would firstly like to commend you on your excellent tut’s. I’ve been following your two previous tutorials on HSRP and VRRP using GNS3 and on my live lab also and have been really pleased with the results and in getting to better understand these aspects. Your explanation of what is required to get it to work is clear and easy to follow.
      Great job Mark.

      On this topology however, I am not able to view the pics displaying the topology (which I’m guessing will be similar to the HSRP and VRRP topologies ) you’ve used, or the configs. I’ve also tried opening it up in Chrome, IE and Netscape, but still the pics won’t load. It then caused me to do a google image search to see if they were available in the “ether”, but was unable to find anything except for the two previous tutorials of yours.

      I would really like to dig into this tutorial also to complete my wholesome perspective on these types of routing protocols. Is there any chance of obtaining these pics to get a better understanding of your tutorial.

      Kind Regards.

      Many thanks for your assistance and look forward to hopefully hearing from you shortly

      Paul Lawley-Walker.

    Share your thoughts...

    Please fill out the comment form below to post a reply.