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
Router1(config-if)#
FastEthernet0/1
standby version 2
Router1(config-if)#standby
4095
ip
Router1(config-if)#
10.1.1.1
standby
4095
timers msec
15
msec
Router1(config-if)#
50
standby
4095
priority
Router1(config-if)#
200
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
Router2(config-if)#
FastEthernet0/0
standby version 2
Router2(config-if)#standby
4095
ip
Router2(config-if)#
10.1.1.1
standby
4095
timers msec
15
msec
Router2(config-if)#
50
standby
4095
priority
Router2(config-if)#
150
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.