30-7
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 30 Configuring HSRP
Configuring HSRP
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.
Note
This procedure is the minimum number of steps required to enable HSRP. Other configuration is
optional.
Switch#
configure terminal
Switch(config)#
interface gigabitethernet0/1
Switch(config-if)#
no switchport
Switch(config-if)#
standby 1 ip
Switch(config-if)#
end
Switch#
show standby
Configuring HSRP Priority
The standby priority, standby preempt, and standby track interface configuration commands are all
used to set characteristics for finding active and standby routers and behavior regarding when a new
active router takes over.
When configuring HSRP priority, follow these guidelines:
•
Assigning a priority allows you to select the active and standby routers. If preemption is enabled,
the router with the highest priority becomes the active router. If priorities are equal, the current
active router does not change.
•
The highest number (1 to 255) represents the highest priority (most likely to become the active
router).
•
When setting the priority, preempt, or both, you must specify at least one keyword (priority,
preempt, or both).
•
The priority of the device can change dynamically if an interface is configured with the standby
track command and another interface on the router goes down.
•
The standby track interface configuration command ties the router hot standby priority to the
availability of its interfaces and is useful for tracking interfaces that are not configured for HSRP.
When a tracked interface fails, the hot standby priority on the device on which tracking has been
configured decreases by 10. If an interface is not tracked, its state changes do not affect the hot
standby priority of the configured device. For each interface configured for hot standby, you can
configure a separate list of interfaces to be tracked.
•
The standby track interface-priority interface configuration command specifies how much to
decrement the hot standby priority when a tracked interface goes down. When the interface comes
back up, the priority is incremented by the same amount.
•
When multiple tracked interfaces are down and interface-priority values have been configured, the
configured priority decrements are cumulative. If tracked interfaces that were not configured with
priority values fail, the default decrement is 10, and it is noncumulative.
Step 6
end
Return to privileged EXEC mode.
Step 7
show standby [interface-id [group]]
Verify the configuration.
Step 8
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose