HSRP Version 2

Problem

You want to implement HSRP Version 2.

Solution

To enable HSRP Version 2, use the standby version 2 configuration command:

Router1#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#interface FastEthernet0/1          
Router1(config-if)#standby version 2                  
Router1(config-if)#standby 4095 ip 10.1.1.1           
Router1(config-if)#standby 4095 timers msec 15 msec 50
Router1(config-if)#standby 4095 priority 200          
Router1(config-if)#standby 4095 preempt               
Router1(config-if)#end
Router1#

You must also configure every router that participates in the same HSRP group with the same version number:

Router2#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router2(config)#interface FastEthernet0/0
Router2(config-if)#standby version 2
Router2(config-if)#standby 4095 ip 10.1.1.1
Router2(config-if)#standby 4095 timers msec 15 msec 50
Router2(config-if)#standby 4095 priority 150
Router2(config-if)#standby 4095 preempt
Router2(config-if)#end
Router2#

Tip

Cisco added support for HSRP Version 2, beginning with IOS Version 12.3(4)T.

Discussion

Fortunately, all of the HSRP commands remain the same from Version 1, with one noticeable difference, the expanded HSRP group numbering range. As you recall from Recipe 22.1, HSRP Version 1 only supported 256 groups ranging from 0 to 255. One of the enhancements of HSRP Version 2 is the expanded group numbering, which ranges from 0 to 4,095. This enhancement allows you to match HSRP group numbers to ...

Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.