Table Of Contents
Hot Standby Router Protocol Version 2
Restrictions for HSRP Version 2
Information About HSRP Version 2
How to Configure HSRP Version 2
Configuration Examples for HSRP Version 2
Hot Standby Router Protocol Version 2
The Hot Standby Router Protocol (HSRP) Version 2 feature was introduced to prepare for further enhancements and to expand the capabilities beyond what is possible with HSRP version 1. HSRP version 2 has a different packet format than HSRP version 1.
Feature History for the Hot Standby Router Protocol Version 2 Feature
Release Modification12.3(4)T
This feature was introduced.
12.2(25)S
This feature was integrated into Cisco IOS Release 12.2(25)S.
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
•
Restrictions for HSRP Version 2
•
Information About HSRP Version 2
•
How to Configure HSRP Version 2
•
Configuration Examples for HSRP Version 2
Restrictions for HSRP Version 2
•
HSRP version 2 is not available for ATM interfaces running LAN emulation.
•
HSRP version 2 will not interoperate with HSRP version 1. An interface cannot operate both version 1 and version 2 because both versions are mutually exclusive. However, the different versions can be run on different physical interfaces of the same router. You cannot change from version 2 to version 1 if you have configured groups above the group number range allowed for version 1 (0 to 255).
Information About HSRP Version 2
To use the HSRP version 2 feature, you should understand the following concept:
•
HSRP Version 2 Feature Design
HSRP Version 2 Feature Design
HSRP version 2 is designed to address the following issues relative to HSRP version 1:
•
Previously, millisecond timer values are not advertised or learned. HSRP version 2 advertises and learns millisecond timer values. This change ensures stability of the HSRP groups in all cases.
•
Group numbers are restricted to the range from 0 to 255. HSRP version 2 expands the group number range from 0 to 4095.
•
HSRP version 2 provides improved management and troubleshooting. With HSRP version 1, there is no method to identify from HSRP active hello messages which physical router sent the message because the source MAC address is the HSRP virtual MAC address. The HSRP version 2 packet format includes a 6-byte identifier field that is used to uniquely identify the sender of the message. Typically, this field is populated with the interface MAC address.
•
The multicast address 224.0.0.2 is used to send HSRP hello messages. This address can conflict with Cisco Group Management Protocol (CGMP) leave processing.
Version 1 is the default version of HSRP.
HSRP version 2 uses the new IP multicast address 224.0.0.102 to send hello packets instead of the multicast address of 224.0.0.2, which is used by version 1. This new multicast address allows CGMP leave processing to be enabled at the same time as HSRP.
HSRP version 2 permits an expanded group number range, 0 to 4095, and consequently uses a new MAC address range 0000.0C9F.F000 to 0000.0C9F.FFFF. The increased group number range does not imply that an interface can, or should, support that many HSRP groups. The expanded group number range was changed to allow the group number to match the VLAN number on subinterfaces.
When the HSRP version is changed, each group will reinitialize because it now has a new virtual MAC address.
HSRP version 2 has a different packet format than HSRP version 1. The packet format uses a type-length-value (TLV) format. HSRP version 2 packets received by an HSRP version 1 router will have the type field mapped to the version field by HSRP version 1 and subsequently ignored.
The Gateway Load Balancing Protocol (GLBP) also addresses the same issues relative to HSRP version 1 that HSRP version 2 does. See the Gateway Load Balancing Protocol feature document for more information on GLBP.
How to Configure HSRP Version 2
This following section describes configuration tasks for HSRP version 2:
•
Changing to HSRP Version 2 (required)
Changing to HSRP Version 2
This task describes how to change to HSRP version 2.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface type number
4.
ip address ip-address mask
5.
standby version {1 | 2}
6.
standby [group-number] ip [ip-address [secondary]]
7.
end
8.
show standby
DETAILED STEPS
Configuration Examples for HSRP Version 2
This section provides the following configuration example:
HSRP Version 2: Example
The following example shows how to configure HSRP version 2 on an interface with a group number of 350:
!interface vlan350standby version 2standby 350 ip 172.20.100.10standby 350 priority 110standby 350 preemptstandby 350 timers 5 15Additional References
The following sections provide references related to HSRP Version 2.
Related Documents
Related Topic Document TitleHSRP configuration tasks
"Configuring IP Services" chapter in the Cisco IOS IP Configuration Guide
HSRP commands: complete command syntax, command mode, defaults, usage guidelines, and examples
Cisco IOS IP Command Reference, Volume 1 of 4: Addressing and Services, Release 12.3 T
GLBP configuration tasks
Gateway Load Balancing Protocol feature document, Release 12.2(15)T
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
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new and modified commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3 T command reference publications.
show standby
To display Hot Standby Router Protocol (HSRP) information, use the show standby command in user EXEC or privileged EXEC mode.
show standby [type number [group]] [active | init | listen | standby] [brief]
Syntax Description
Command Modes
User EXEC
Privileged EXECCommand History
Usage Guidelines
To specify a group, you must specify an interface type and number.
Examples
The following is sample output from the show standby command when HSRP version 2 is configured:
Router# show standbyEthernet0/1 - Group 1 (version 2)State is SpeakVirtual IP address is 10.21.0.10Active virtual MAC address is unknownLocal virtual MAC address is 0000.0c9f.f001 (v2 default)Hello time 3 sec, hold time 10 secNext hello sent in 1.804 secsPreemption enabledActive router is unknownStandby router is unknownPriority 20 (configured 20)IP redundancy name is "hsrp-Et0/1-1" (default)Ethernet0/2 - Group 1State is SpeakVirtual IP address is 10.22.0.10Active virtual MAC address is unknownLocal virtual MAC address is 0000.0c07.ac01 (v1 default)Hello time 3 sec, hold time 10 secNext hello sent in 1.804 secsPreemption disabledActive router is unknownStandby router is unknownPriority 90 (default 100)Track interface Serial2/0 state Down decrement 10IP redundancy name is "hsrp-Et0/2-1" (default)The following is sample output from the show standby command:
Router# show standbyEthernet0/1 - Group 1State is Active2 state changes, last state change 00:30:59Virtual IP address is 10.1.0.20Secondary virtual IP address 10.1.0.21Active virtual MAC address is 0004.4d82.7981Local virtual MAC address is 0004.4d82.7981 (bia)Hello time 4 sec, hold time 12 secNext hello sent in 1.412 secsPreemption enabled, min delay 50 sec, sync delay 40 secActive router is localStandby router is 10.1.0.6, priority 75 (expires in 9.184 sec)Priority 95 (configured 120)Tracking 2 objects, 0 upDown Interface Ethernet0/2, pri 15Down Interface Ethernet0/3IP redundancy name is "HSRP1", advertisement interval is 34 secThe following is sample output from the show standby command with an interface and the brief and init keywords specified:
Router# show standby ethernet0/1 1 init briefInterface Grp Prio P State Active addr Standby addr Group addrEt0 0 120 Init 10.0.0.1 unknown 10.0.0.12The following is sample output from the show standby command when HSRP MD5 authentication is configured:
Router# show standbyEthernet0/1 - Group 1State is Active5 state changes, last state change 00:17:27Virtual IP address is 10.21.0.10Active virtual MAC address is 0000.0c07.ac01Local virtual MAC address is 0000.0c07.ac01 (default)Hello time 3 sec, hold time 10 secNext hello sent in 2.276 secsAuthentication MD5, key-string "f33r45", timeout 30 secsPreemption enabledActive router is localStandby router is unknownPriority 110 (configured 110)IP redundancy name is "hsrp-Et0/1-1" (default)Table 1 describes the significant fields shown in the displays.
Related Commands
standby ip
To activate the Hot Standby Router Protocol (HSRP), use the standby ip command in interface configuration mode. To disable HSRP, use the no form of this command.
standby [group-number] ip [ip-address [secondary]]
no standby [group-number] ip [ip-address]
Syntax Description
Defaults
The default group number is 0.
HSRP is disabled by default.Command Modes
Interface configuration
Command History
Usage Guidelines
The standby ip command activates HSRP on the configured interface. If an IP address is specified, that address is used as the designated address for the Hot Standby group. If no IP address is specified, the designated address is learned through the standby function. For HSRP to elect a designated router, at least one router on the cable must have been configured with, or have learned, the designated address. Configuring the designated address on the active router always overrides a designated address that is currently in use.
When the standby ip command is enabled on an interface, the handling of proxy ARP requests is changed (unless proxy ARP was disabled). If the Hot Standby state of the interface is active, proxy ARP requests are answered using the MAC address of the Hot Standby group. If the interface is in a different state, proxy ARP responses are suppressed.
When group number 0 is used, no group number is written to NVRAM, providing backward compatibility.
HSRP version 2 permits an expanded group number range from 0 to 4095. The increased group number does not imply that an interface can, or should, support that many HSRP groups. The expanded group number range was changed to allow the group number to match the VLAN number on subinterfaces.
Examples
The following example activates HSRP for group 1 on Ethernet interface 0. The IP address used by the Hot Standby group will be learned using HSRP.
interface ethernet 0standby 1 ipIn the following example, all three virtual IP addresses appear in the ARP table using the same (single) virtual MAC address. All three virtual IP addresses are using the same HSRP group (group 0).
ip address 10.1.1.1. 255.255.255.0ip address 10.2.2.2. 255.255.255.0 secondaryip address 10.3.3.3. 255.255.255.0 secondaryip address 10.4.4.4. 255.255.255.0 secondarystandby ip 10.1.1.254standby ip 10.2.2.254 secondarystandby ip 10.3.3.254 secondarystandby version
To change the version of the Hot Standby Router Protocol (HSRP), use the standby version command in interface configuration mode. To change to the default version, use the no form of this command.
standby version {1 | 2}
no standby version {1 | 2}
Syntax Description
Defaults
HSRP version 1 is the default HSRP version.
Command Modes
Interface configuration
Command History
Release Modification12.3(4)T
This command was introduced.
12.2(25)S
This command was integrated into Cisco IOS Release 12.2(25)S.
Usage Guidelines
HSRP version 2 addresses limitations of HSRP version 1 by providing an expanded group number range of 0 to 4095.
HSRP version 2 will not interoperate with HSRP version 1. An interface can not operate both version 1 and version 2 because both versions are mutually exclusive. However, the different versions can be run on different physical interfaces of the same router. You can not change from version 2 to version 1 if you have configured groups above 255. Using the no standby version command sets the HSRP version to the default version, version 1.
If an HSRP version is changed, each group will reinitialize because it now has a new virtual MAC address.
Examples
The following example shows how to configure HSRP version 2 on an interface with a group number of 500:
!interface vlan500standby version 2standby 500 ip 172.20.100.10standby 350 priority 110standby 350 preemptstandby 350 timers 5 15Related Commands
Copyright © 2003 Cisco Systems, Inc. All rights reserved.

