Cisco Catalyst 3560-X Software Configuration Manual page 1201

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

Chapter 1
Configuring HSRP and VRRP
Beginning in privileged EXEC mode, follow these steps to create or enable HSRP on a Layer 3 interface:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
standby version {1 | 2}
Step 4
standby [group-number] ip [ip-address
[secondary]]
Step 5
end
Step 6
show standby [interface-id [group]]
Step 7
copy running-config startup-config
Use the no standby [group-number] ip [ip-address] interface configuration command to disable HSRP.
This example shows how to activate HSRP for group 1 on an interface. The IP address used by the hot
standby group is learned by using HSRP.
This procedure is the minimum number of steps required to enable HSRP. Other configuration is
Note
optional.
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# no switchport
Switch(config-if)# standby 1 ip
Switch(config-if)# end
Switch# show standby
OL-25303-03
Purpose
Enter global configuration mode.
Enter interface configuration mode, and enter the Layer 3 interface on
which you want to enable HSRP.
(Optional) Configure the HSRP version on the interface.
1— Select HSRPv1.
2— Select HSRPv2.
If you do not enter this command or do not specify a keyword, the
interface runs the default HSRP version, HSRP v1.
Create (or enable) the HSRP group using its number and virtual IP
address.
(Optional) group-number—The 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 group
number.
(Optional on all but one interface) ip-address—The 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 the other
interfaces.
(Optional) secondary—The IP address is a secondary hot standby
router interface. If neither router is designated as a secondary 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.
Return to privileged EXEC mode.
Verify the configuration.
(Optional) Save your entries in the configuration file.
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
Configuring HSRP
1-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents