load-balancing
To specify the load-balancing method used by the active virtual gateway (AVG) of the Gateway Load Balancing Protocol (GLBP), use the load-balancing command. To disable load balancing, use the no form of this command.
load-balancing [host-dependent | round-robin | weighted]
no load-balancing
Syntax Description
host-dependent |
(Optional) Specifies a load-balancing method based on the MAC address of a host where the same forwarder is always used for a particular host while the number of GLBP group members remains unchanged. |
round-robin |
(Optional) Specifies a load-balancing method where each virtual forwarder is included in Address Resolution Protocol (ARP) replies for the virtual IP address. This method is the default. |
weighted |
(Optional) Specifies a load-balancing method that is dependent on the weighting value advertised by the gateway. |
Command Default
The round-robin method is the default.
Command Modes
GLBP configuration
Command History
Release |
Modification |
---|---|
4.0(1) |
This command was introduced. |
Usage Guidelines
Use the host-dependent method of GLBP load balancing when you need each host to always use the same router. Use the weighted method of GLBP load balancing when you need unequal load balancing because gateways in the GLBP group have different forwarding capacities.
This command does not require a license.
Examples
This example show how to configure the host-dependent load-balancing method for the AVG of the GLBP group 10:
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# glbp 10
switch(config-glbp)# load-balancing host-dependent