Configuring GLBP
Configuring GLBP
Configuring GLBP
Gateway Load Balancing Protocol (GLBP) protects data traffic from a failed device or circuit, like Hot Standby
Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP), while allowing packet load sharing
between a group of redundant devices.
Configuring GLBP
1
Configuring GLBP
Information About GLBP
Configuring GLBP
2
Configuring GLBP
GLBP Virtual MAC Address Assignment
If Router A becomes unavailable, Client 1 will not lose access to the WAN because Router B will assume
responsibility for forwarding packets sent to the virtual MAC address of Router A, and for responding to
packets sent to its own virtual MAC address. Router B will also assume the role of the AVG for the entire
GLBP group. Communication for the GLBP members continues despite the failure of a device in the GLBP
group.
Configuring GLBP
3
Configuring GLBP
GLBP Gateway Priority
in ARP replies, although the virtual forwarder will continue to forward packets that were sent to the old virtual
forwarder MAC address.
The secondary holdtime is the interval during which the virtual forwarder is valid. When the secondary
holdtime expires, the virtual forwarder is removed from all gateways in the GLBP group. The expired virtual
forwarder number becomes eligible for reassignment by the AVG.
Configuring GLBP
4
Configuring GLBP
GLBP Benefits
The key for the MD5 hash can either be given directly in the configuration using a key string or supplied
indirectly through a key chain. The key string cannot exceed 100 characters in length.
A device will ignore incoming GLBP packets from devices that do not have the same authentication
configuration for a GLBP group. GLBP has three authentication schemes:
• No authentication
• Plain text authentication
• MD5 authentication
GLBP Benefits
Load Sharing
You can configure GLBP in such a way that traffic from LAN clients can be shared by multiple devices,
thereby sharing the traffic load more equitably among available devices.
Preemption
The redundancy scheme of GLBP enables you to preempt an active virtual gateway (AVG) with a higher
priority backup virtual gateway that has become available. Forwarder preemption works in a similar way,
except that forwarder preemption uses weighting instead of priority and is enabled by default.
Authentication
GLBP supports the industry-standard message digest 5 (MD5) algorithm for improved reliability, security,
and protection against GLBP-spoofing software. A device within a GLBP group with a different authentication
string than other devices will be ignored by other group members. You can alternatively use a simple text
password authentication scheme between GLBP group members to detect configuration errors.
Configuring GLBP
5
Configuring GLBP
Customizing GLBP
Procedure
Device> enable
Step 3 interface type number Specifies an interface type and number, and
enters interface configuration mode.
Example:
Device(config)# interface
GigabitEthernet 1/0/1
Step 5 glbp group timers [msec] hellotime [msec] Configures the interval between successive
holdtime hello packets sent by the AVG in a GLBP
group.
Example:
• The holdtime argument specifies the
Device(config-if)# glbp 10 timers 5 18 interval in seconds before the virtual
gateway and virtual forwarder
information in the hello packet is
considered invalid.
• The optional msec keyword specifies that
the following argument will be expressed
in milliseconds, instead of the default
seconds.
Step 6 glbp group timers redirect redirect timeout Configures the time interval during which the
AVG continues to redirect clients to an AVF.
Example:
The default is 600 seconds (10 minutes).
Device(config-if)# glbp 10 timers • The timeout argument specifies the
redirect 1800 28800 interval in seconds before a secondary
virtual forwarder becomes invalid. The
default is 14,400 seconds (4 hours).
Configuring GLBP
6
Configuring GLBP
Customizing GLBP
Step 7 glbp group load-balancing [host-dependent Specifies the method of load balancing used
| round-robin | weighted] by the GLBP AVG.
Example:
Device(config-if)# glbp 10
load-balancing host-dependent
Step 8 glbp group priority level Sets the priority level of the gateway within a
GLBP group.
Example:
• The default value is 100.
Device(config-if)# glbp 10 priority 254
Step 9 glbp group preempt [delay minimum Configures the device to take over as AVG for
seconds] a GLBP group if it has a higher priority than
the current AVG.
Example:
• This command is disabled by default.
Device(config-if)# glbp 10 preempt delay
minimum 60 • Use the optional delay and minimum
keywords and the seconds argument to
specify a minimum delay interval in
seconds before preemption of the AVG
takes place.
Configuring GLBP
7
Configuring GLBP
Configuring GLBP MD5 Authentication Using a Key String
Device(config-if)# exit
Procedure
Device> enable
Step 3 interface type number Configures an interface type and enters interface
configuration mode.
Example:
Step 4 ip address ip-address mask [secondary] Specifies a primary or secondary IP address for
an interface.
Example:
Step 5 glbp group-number authentication md5 Configures an authentication key for GLBP
key-string [ 0 | 7] key MD5 authentication.
Example: • The key string cannot exceed 100
characters in length.
Device(config-if)# glbp 1 authentication
md5 key-string d00b4r987654321a • No prefix to the key argument or
specifying 0 means the key is unencrypted.
• Specifying 7 means the key is encrypted.
The key-string authentication key will
automatically be encrypted if the service
password-encryption global configuration
command is enabled.
Configuring GLBP
8
Configuring GLBP
Configuring GLBP MD5 Authentication Using a Key Chain
Device(config-if)# end
Procedure
Device> enable
Configuring GLBP
9
Configuring GLBP
Configuring GLBP MD5 Authentication Using a Key Chain
Device(config-keychain-key)# exit
Device(config-keychain)# exit
Device(config)# interface
GigabitEthernet 1/0/1
Step 10 glbp group-number authentication md5 Configures an authentication MD5 key chain
key-chain name-of-chain for GLBP MD5 authentication.
Example: • The key chain name must match the name
specified in Step 3.
Device(config-if)# glbp 1 authentication
md5 key-chain glbp2
Configuring GLBP
10
Configuring GLBP
Configuring GLBP Text Authentication
Device(config-if)# end
Procedure
Device> enable
Step 3 interface type number Configures an interface type and enters interface
configuration mode.
Example:
Step 4 ip address ip-address mask [secondary] Specifies a primary or secondary IP address for
an interface.
Example:
Configuring GLBP
11
Configuring GLBP
Configuring GLBP Weighting Values and Object Tracking
Step 6 glbp group-number ip [ip-address [secondary]] Enables GLBP on an interface and identifies
the primary IP address of the virtual gateway.
Example:
Device(config-if)# end
Procedure
Device> enable
Step 3 track object-number interface type number Configures an interface to be tracked where
{line-protocol |{ip | ipv6} routing} changes in the state of the interface affect the
Configuring GLBP
12
Configuring GLBP
Configuring GLBP Weighting Values and Object Tracking
Device(config-track)# exit
Device(config)# interface
GigabitEthernet 1/0/1
Step 6 glbp group weighting maximum [lower lower] Specifies the initial weighting value, and the
[upper upper] upper and lower thresholds, for a GLBP
gateway.
Example:
Step 7 glbp group weighting track object-number Specifies an object to be tracked that affects
[decrement value] the weighting of a GLBP gateway.
Example: • The value argument specifies a reduction
in the weighting of a GLBP gateway
Device(config-if)# glbp 10 weighting when a tracked object fails.
track 2 decrement 5
Step 8 glbp group forwarder preempt [delay Configures the device to take over as AVF for
minimum seconds] a GLBP group if the current AVF for a GLBP
group falls below its low weighting threshold.
Example:
• This command is enabled by default with
Device(config-if)# glbp 10 forwarder a delay of 30 seconds.
preempt delay minimum 60
• Use the optional delay and minimum
keywords and the seconds argument to
specify a minimum delay interval in
seconds before preemption of the AVF
takes place.
Configuring GLBP
13
Configuring GLBP
Troubleshooting GLBP
Device(config-if)# exit
Troubleshooting GLBP
GLBP introduces five privileged EXEC mode commands to enable display of diagnostic output concerning
various events relating to the operation of GLBP. The debug condition glbp,debug glbp errors, debug glbp
events, debug glbp packets, and debug glbp terse commands are intended only for troubleshooting purposes
because the volume of output generated by the software can result in severe performance degradation on the
device. Perform this task to minimize the impact of using the debug glbp commands.
This procedure will minimize the load on the device created by the debug condition glbpor debug glbp
command because the console port is no longer generating character-by-character processor interrupts. If you
cannot connect to a console directly, you can run this procedure via a terminal server. If you must break the
Telnet connection, however, you may not be able to reconnect because the device may be unable to respond
due to the processor load of generating the debugging output.
Procedure
Device> enable
Configuring GLBP
14
Configuring GLBP
Configuration Examples for GLBP
Device(config)# end
Step 7 debug condition glbp interface-type Displays debugging messages about GLBP
interface-number group [forwarder] conditions.
Example: • Try to enter only specific debug condition
glbp or debug glbp commands to isolate
Device# debug condition glbp the output to a certain subcomponent and
GigabitEthernet 0/0/0 1 minimize the load on the processor. Use
appropriate arguments and keywords to
generate more detailed debug information
on specified subcomponents.
• Enter the specific no debug condition
glbp or no debug glbp command when
you are finished.
Configuring GLBP
15
Configuring GLBP
Example: Configuring GLBP MD5 Authentication Using Key Strings
Configuring GLBP
16
Configuring GLBP
Additional References for GLBP
GLBP commands: complete command syntax, command Cisco IOS IP Application Services Command
mode, command history, defaults, usage guidelines, and Reference
examples.
Key chains and key management commands: complete Cisco IOS IP Routing Protocol-Independent
command syntax, command mode, command history, Command Reference
defaults, usage guidelines, and examples
Technical Assistance
Description Link
Configuring GLBP
17
Configuring GLBP
Glossary
Gateway Load GLBP protects data traffic from a failed router or circuit, like HSRP and
Balancing VRRP, while allowing packet load sharing between a group of redundant
Protocol routers.
In Cisco IOS Release Cisco IOS XE Release 3.6E, this feature is supported
on the following platforms:
• Cisco 5760 Wireless LAN Controller
GLBP MD5 Cisco IOS MD5 authentication provides greater security than the alternative plain text
Authentication XE 3.6E authentication scheme. MD5 authentication allows each GLBP group
member to use a secret key to generate a keyed MD5 hash that is part of
the outgoing packet. A keyed hash of an incoming packet is generated and,
if the hash within the incoming packet does not match the generated hash,
the packet is ignored.
In Cisco IOS Release Cisco IOS XE Release 3.6E, this feature is supported
on the following platforms:
• Cisco 5760 Wireless LAN Controller
Glossary
active RP—The Route Processor (RP) controls the system, provides network services, runs routing protocols
and presents the system management interface.
AVF—active virtual forwarder. One virtual forwarder within a GLBP group is elected as active virtual
forwarder for a specified virtual MAC address, and it is responsible for forwarding packets sent to that MAC
address. Multiple active virtual forwarders can exist for each GLBP group.
AVG—active virtual gateway. One virtual gateway within a GLBP group is elected as the active virtual
gateway, and is responsible for the operation of the protocol.
GLBP gateway—Gateway Load Balancing Protocol gateway. A router or gateway running GLBP. Each
GLBP gateway may participate in one or more GLBP groups.
GLBP group—Gateway Load Balancing Protocol group. One or more GLBP gateways configured with the
same GLBP group number on connected Ethernet interfaces.
NSF—nonstop forwarding. The ability of a router to continue to forward traffic to a router that may be
recovering from a failure. Also, the ability of a router recovering from a failure to continue to correctly forward
traffic sent to it by a peer.
Configuring GLBP
18
Configuring GLBP
Glossary
RP—Route Processor. A generic term for the centralized control unit in a chassis. Platforms usually use a
platform-specific term, such as RSP on the Cisco 7500, the PRE on the Cisco 10000, or the SUP+MSFC on
the Cisco 7600.
RPR—Route Processor Redundancy. RPR provides an alternative to the High System Availability (HSA)
feature. HSA enables a system to reset and use a standby Route Processor (RP) if the active RP fails. Using
RPR, you can reduce unplanned downtime because RPR enables a quicker switchover between an active and
standby RP if the active RP experiences a fatal error.
RPR+—An enhancement to RPR in which the standby RP is fully initialized.
standby RP—An RP that has been fully initialized and is ready to assume control from the active RP should
a manual or fault-induced switchover occur.
switchover—An event in which system control and routing protocol execution are transferred from the active
RP to the standby RP. Switchover may be a manual operation or may be induced by a hardware or software
fault. Switchover may include transfer of the packet forwarding function in systems that combine system
control and packet forwarding in an indivisible unit.
vIP—virtual IP address. An IPv4 address. There must be only one virtual IP address for each configured
GLBP group. The virtual IP address must be configured on at least one GLBP group member. Other GLBP
group members can learn the virtual IP address from hello messages.
Configuring GLBP
19
Configuring GLBP
Glossary
Configuring GLBP
20