23-5
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter23 Configuring HSRP Configuring HSRP
Beginning in privileged EXEC mode, follow these steps to create or enable HSRP on a Layer 3 interface :
Use the no standby [group-number] ip [ip-address] interface configuration command to disable HSRP.
Use the no standby [group-number] mac-address mac-address interface configuration command to
return to the default virtual MAC address.
This example shows how to activate HSRP for group 1 on Gigabit Etherne t interface 0/1. The IP address
used by the hot standby group is learned by using HSRP.
Note This procedure is the minimum number o f s teps required to enable HSRP.
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# standby 1 ip
Switch(config-if)# end
Switch# show standby
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and enter the Layer 3 interface on
which you want to enable HSRP.
Step3 standby [group-number] ip [ip-address
[secondary]] Create (or enable) the HSRP group using its number and virtual IP
address.
(Optional) group-numberThe group number on the interface for
which HSRP is being enabled. The range is 0 to 255; the default is 0.
If there is only one HSRP group, you do not need to enter a gro up
number.
(Optional on all but one interface) ip-addressThe virtual IP address
of the hot standby router interface. You must enter the virtual IP
address for at least one of the interfaces; it can be learned on t he othe r
interfaces.
(Optional) secondaryThe IP address is a secondary hot standby
router interface. If neither router is designated as a sec ond ary or
standby router and no priorities are set, the primary IP addresses are
compared and the higher IP address is the active router, with the next
highest as the standby router.
Step4 standby [group-number] mac-address
mac-address (Optional) Specify the virtual MAC address for the virtual router. We
recommend that you do not configure this parameter, but instead use the
default well-known MAC address. If it is necessary to configure a virtual
MAC address, the first five bytes in all MAC addresses for the HSRP
should be the same. The last byte represents the group number.
Step5 end Return to privileged EXEC mode.
Step6 show standby [interface-id [group]] Verify the configuration.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.