Table Of Contents
Information About GLBP MD5 Authentication
How GLBP MD5 Authentication Works
Benefits of GLBP MD5 Authentication
How to Configure GLBP MD5 Authentication
Configuring GLBP MD5 Authentication Using a Key String
Configuring GLBP MD5 Authentication Using a Key Chain
Configuration Examples for GLBP MD5 Authentication
GLBP MD5 Authentication Using Key Strings: Example
GLBP MD5 Authentication Using Key Chains Example
GLBP MD5 Authentication
Prior to the introduction of the GLBP MD5 Authentication feature, the Gateway Load Balancing Protocol (GLBP) authenticated protocol packets with a simple plain text string. The GLBP MD5 Authentication feature is an enhancement to generate a Message Digest 5 (MD5) digest for the GLBP portion of the multicast GLBP protocol packet. This feature provides added security and protects against the threat from GLBP-spoofing software.
History for the GLBP MD5 Authentication Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Information About GLBP MD5 Authentication
•
How to Configure GLBP MD5 Authentication
•
Configuration Examples for GLBP MD5 Authentication
Information About GLBP MD5 Authentication
Before you configure GLBP MD5 authentication, you should understand the following concepts:
•
How GLBP MD5 Authentication Works
•
Benefits of GLBP MD5 Authentication
How GLBP MD5 Authentication Works
MD5 authentication provides greater security than the alternative plain text authentication scheme. MD5 authentication allows each GLBP group member to use a secret key to generate a keyed MD5 hash of the packet that is part of the outgoing packet. A keyed hash of an incoming packet is generated and if the generated hash does not match the hash within the incoming packet, the packet is ignored.
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.
A router will ignore incoming GLBP packets from other routers 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 packets will be rejected in any of the following cases:
•
The authentication schemes differ on the router and in the incoming packet.
•
MD5 digests differ on the router and in the incoming packet.
•
Text authentication strings differ on the router and in the incoming packet.
Benefits of GLBP MD5 Authentication
•
Protects against spoofing software.
•
Uses the industry-standard MD5 algorithm for improved reliability and security.
How to Configure GLBP MD5 Authentication
The following sections describe configuration tasks for GLBP MD5 authentication. The task you perform depends on whether you want to use a simple MD5 key string or MD5 key chains for authentication.
•
Configuring GLBP MD5 Authentication Using a Key String
•
Configuring GLBP MD5 Authentication Using a Key Chain
Configuring GLBP MD5 Authentication Using a Key String
This task describes how to configure GLBP MD5 authentication using a key string.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface type number
4.
ip address ip-address mask [secondary]
5.
glbp group-number ip [ip-address [secondary]]
6.
glbp group-number authentication md5 key-string [0 | 7] key
7.
Repeat Steps 1 through 6 on each router that will communicate.
8.
end
9.
show glbp
DETAILED STEPS
Configuring GLBP MD5 Authentication Using a Key Chain
This task describes how to configure GLBP MD5 authentication using a key chain. Key chains allow a different key string to be used at different times according to the key chain configuration. GLBP will query the appropriate key chain to obtain the current live key and key ID for the specified key chain.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
key chain name-of-chain
4.
key key-id
5.
key-string string
6.
exit
7.
interface type number
8.
ip address ip-address mask [secondary]
9.
glbp group-number ip [ip-address [secondary]]
10.
glbp group-number authentication md5 key-chain name-of-chain
11.
Repeat Steps 1 through 10 on each router that will communicate.
12.
end
13.
show glbp
14.
show key chain
DETAILED STEPS
Configuration Examples for GLBP MD5 Authentication
This section provides the following configuration examples:
•
GLBP MD5 Authentication Using Key Strings: Example
•
GLBP MD5 Authentication Using Key Chains Example
GLBP MD5 Authentication Using Key Strings: Example
The following example configures GLBP MD5 authentication using a key string:
!interface Ethernet0/1ip address 10.0.0.1 10.255.255.0glbp 2 ip 10.0.0.1glbp 2 authentication md5 key-string ThisStringIsTheSecretKeyGLBP MD5 Authentication Using Key Chains Example
In the following example, GLBP queries the key chain "AuthenticateGLBP" to obtain the current live key and key ID for the specified key chain:
key chain AuthenticateGLBPkey 1key-string ThisIsASecretKeyinterface Ethernet0/1ip address 10.0.0.1 10.255.255.0glbp 2 ip 10.0.0.1glbp 2 authentication md5 key-chain AuthenticateGLBPAdditional References
The following section provides information related to GLBP MD5 authentication.
Related Documents
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
Technical Assistance
Command Reference
This section documents modified commands only.
glbp authentication
To configure an authentication string for the Gateway Load Balancing Protocol (GLBP), use the glbp authentication command in interface configuration mode. To disable authentication, use the no form of this command.
glbp group-number authentication {text string | md5 {key-string [0 | 7] key | key-chain name-of-chain}}
no glbp group-number authentication {text string | md5 {key-string [0 | 7] key | key-chain name-of-chain}}
Syntax Description
Defaults
No authentication of GLBP messages occurs.
Command Modes
Interface configuration
Command History
Usage Guidelines
The same authentication method must be configured on all the routers that are configured to be members of the same GLBP group, to ensure interoperation. A router will ignore all GLBP messages that contain the wrong authentication information.
If password encryption is configured with the service password-encryption command, the software saves the key string in the configuration as encrypted text.
Examples
The following example configures stringxyz as the authentication string required to allow GLBP routers in group 10 to interoperate:
interface fastethernet 0/0glbp 10 authentication text stringxyzIn the following example, GLBP queries the key chain "AuthenticateGLBP" to obtain the current live key and key ID for the specified key chain:
key chain AuthenticateGLBPkey 1key-string ThisIsASecretKeyinterface Ethernet0/1ip address 10.0.0.1 255.255.255.0glbp 2 ip 10.0.0.10glbp 2 authentication md5 key-chain AuthenticateGLBPRelated Commands
show glbp
To display Gateway Load Balancing Protocol (GLBP) information, use the show glbp command in privileged EXEC mode.
show glbp [interface-type interface-number] [group-number] [state] [brief]
Syntax Description
Command Modes
Privileged EXEC
Command History
Usage Guidelines
Use the show glbp command to display information about GLBP groups on a router. The brief keyword displays a single line of information about each virtual gateway or virtual forwarder.
Examples
The following is sample output from the show glbp command:
Router# show glbpFastEthernet0/0 - Group 10State is Active2 state changes, last state change 23:50:33Virtual IP address is 10.21.8.10Hello time 5 sec, hold time 18 secNext hello sent in 4.300 secsRedirect time 600 sec, forwarder time-out 7200 secAuthentication MD5, key "ThisStringIsTheSecretKey"Preemption enabled, min delay 60 secActive is localStandby is unknownPriority 254 (configured)Weighting 105 (configured 110), thresholds: lower 95, upper 105Track object 2 state Down decrement 5Load balancing: host-dependentThere is 1 forwarder (1 active)Forwarder 1State is Active1 state change, last state change 23:50:15MAC address is 0007.b400.0101 (default)Owner ID is 0005.0050.6c08Redirection enabledPreemption enabled, min delay 60 secActive is local, weighting 105The following is sample output from the show glbp command with the brief keyword specified:
Router# show glbp briefInterface Grp Fwd Pri State Address Active router Standby routerFa0/0 10 - 254 Active 10.21.8.10 local unknownFa0/0 10 1 7 Active 0007.b400.0101 local -The following is sample output from the show glbp command that displays GLBP group 10:
Router# show glbp 10FastEthernet0/0 - Group 10State is Active2 state changes, last state change 23:50:33Virtual IP address is 10.21.8.10Hello time 5 sec, hold time 18 secNext hello sent in 4.300 secsRedirect time 600 sec, forwarder time-out 7200 secAuthentication MD5, key "ThisStringIsTheSecretKey"Preemption enabled, min delay 60 secActive is localStandby is unknownPriority 254 (configured)Weighting 105 (configured 110), thresholds: lower 95, upper 105Track object 2 state Down decrement 5Load balancing: host-dependentThere is 1 forwarder (1 active)Forwarder 1State is Active1 state change, last state change 23:50:15MAC address is 0007.b400.0101 (default)Owner ID is 0005.0050.6c08Redirection enabledPreemption enabled, min delay 60 secActive is local, weighting 105The following output shows that the redundancy name has been assigned to the "glbp1" group:
Router# show glbp ethernet0/1 1
Ethernet0/1 - Group 1
State is Listen
64 state changes, last state change 00:00:54
Virtual IP address is 10.1.0.7
Hello time 50 msec, hold time 200 msec
Next hello sent in 0.030 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Authentication text "authword"
Preemption enabled, min delay 0 sec
Active is 10.1.0.2, priority 105 (expires in 0.184 sec)
Standby is 10.1.0.3, priority 100 (expires in 0.176 sec)
Priority 96 (configured)
Weighting 100 (configured 100), thresholds: lower 95, upper 100
Track object 1 state Up decrement 10
Load balancing: round-robin
IP redundancy name is "glbp1"
Group members:
0004.4d83.4801 (10.0.0.0)
0010.7b5a.fa41 (10.0.0.1)
00d0.bbd3.bc21 (10.0.0.2) local
Table 1 describes the significant fields shown in the displays.
Related Commands
Glossary
encryption—Encryption is the translation of data into a secret code. Encryption is a way to achieve data security. Encryption prevents the password or key from being easily readable in the configuration file.
MD5—Message Digest 5. An algorithm that is used to create digital signatures. MD5 is a one-way hash function, meaning that it takes a message and converts it into a fixed string of digits, also called a message digest. When using a one-way hash function, you can compare a calculated message digest against the received message digest to verify that the message hasn't been tampered with. This comparison is called a hashcheck.
Note
Refer to Internetworking Terms and Acronyms for terms not included in this glossary.
© 2003, 2005 Cisco Systems, Inc. All rights reserved.

