![]() |
Cisco
|
|||
| Home > Work With My Routers > Cisco Routers > Configure Gateway Load Balancing Protocol on Cisco Routers | ||||||||||
IntroductionThis document explains how to configure Gateway Load Balancing Protocol (GLBP) on a Cisco router for redundancy and load balancing. ComponentsTo perform the steps described in this document, you need to have these items:
GLBP overviewGateway Load Balancing Protocol (GLBP) is a Cisco proprietary protocol that attempts to overcome the limitations of existing redundant router protocols, like Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP), by adding basic load balancing functionality between a group of redundant routers. HSRP and VRRP protocols allow multiple routers to participate in a virtual router group configured with a virtual IP address. One member is elected to be the active router to forward packets sent to the virtual IP address for the group. The other routers in the group are redundant until the active router fails. These standby routers have unused bandwidth and it is not used by the protocol. GLBP provides automatic router backup for IP hosts configured with a single default gateway on an IEEE 802.3 LAN. Multiple first hop routers on the LAN combine to offer a single virtual first hop IP router while sharing the IP packet forwarding load. Other routers on the LAN act as redundant GLBP routers that becomes active if any of the existing forwarding routers fail. This is achieved in GLBP using a single virtual IP address and multiple virtual MAC addresses. Hence, it is mandatory that the router supports multiple MAC addresses on the physical interfaces. Each host is configured with the same virtual IP address, and all routers in the virtual router group participate in forwarding packets. The ARP requests from the hosts in the network for the default gateway IP is answered with MAC addresses pointing to different routers in the group. Thus, load balancing is not based on traffic load, but rather on the number of hosts that uses each gateway router. By default, GLBP routers use the local multicast address 224.0.0.102 to send hello packets to their peers every 3 seconds over UDP port 3222. Members of a GLBP group elect one router to be the active virtual gateway (AVG) for that group. Other group members provide backup for the AVG in the event that the AVG becomes unavailable and also actively forward the network traffic and are known as active virtual forwarders (AVFs). The AVG assigns a virtual MAC address to each active member of the GLBP group. A GLBP group allows up to four virtual MAC addresses per group. GLBP supports up to 1024 virtual routers (GLBP groups) on each physical interface of a router, and up to 4 virtual forwarders per group. If there are more than four routers in a GLBP group these routers become secondary virtual forwarders and go into a listen state. They assume the role of AVF when a present AVF fails. Each router assumes responsibility for forwarding packets sent to the virtual MAC address assigned to it by the AVG. GLBP uses a weighting scheme to determine the forwarding capacity of each router in the GLBP group. The weighting assigned to a router in the GLBP group determines whether it forwards packets and, if so, the proportion of hosts in the LAN for which it forwards packets. Another metric called GLBP gateway priority determines, the role that each GLBP gateway plays and what happens if the AVG fails. Priority also determines if a GLBP router functions as a backup virtual gateway and the order of ascendancy to become an AVG if the current AVG fails. By default, the GLBP gateway preemptive scheme is disabled. A backup virtual gateway can become the AVG only if the current AVG fails, regardless of the priorities assigned to the virtual gateways. Preemption allows a backup virtual gateway to become the AVG, if the backup virtual gateway is assigned a higher priority than the current AVG.
In this document two routers are connected to the inside network through interface fastEthernet0/0 via a switch. The fastEthernet0/0 interfaces of the routers are assigned IP addresses 192.168.10.2 and 192.168.10.3 respectively. The default gateway for the hosts in the inside network is the virtual IP address 192.168.10.1 provided by GLBP and not the assigned IP addresses of the fastEthernet0/0 interface. Router A is the AVG for the GLBP group, and is also an AVF with a virtual MAC address. Router B is a member of the same GLBP group and is designated as the AVF with a different MAC address. The default gateway for both of the hosts in the network is 192.168.10.1. However, they get different MAC address resolution via ARP and thus different routers act as their default gateway. Configure GLBPAlthough customizing GLBP is optional but, if you plan to customize GLBP it is a good idea to first customize GLBP before enabling it. This is because, as soon as you enable a GLBP group, that group starts to operate. It is possible that if you first enable a GLBP group before customizing GLBP, the router could take over the control of the group and become the AVG before you have finished customizing the feature. Follow these steps to configure GLBP on a router:
Configure the other routers in the GLBP group with the same steps as of Configuring GLBP. However; change the priority of each router accordingly, if you need to customize these optional features. Next StepYou have now configured GLBP on your router. To make further changes to your router, refer to the Router Support Page. To configure other devices in your network, refer to the Configuration Overview Page. Troubleshoot the ProcedureThis section provides information about common problems that you may encounter. If this information does not solve your problem, contact the SMB Technical Assistance Center (SMB TAC) for assistance.
Related Information |
||||||||||
![]() |
![]() |