42-9
Catalyst 3750-E and 3560-E Switch Software Configuration Guide
OL-9775-08
Chapter 42 Configuring HSRP
Configuring HSRP
Use the
no
standby
[
group-number
]
priority
priority
[
preempt
[
delay
delay
]] and
no standby
[
group-number
] [
priority
priority
]
preempt
[
delay
delay
] interface configuration commands to restore
default priority, preempt, and delay values.
Use the
no standby
[
group-number
]
track
type number
[
interface-priority
] interface configuration
command to remove the tracking.
This example activates a port, sets an IP address and a priority of 120 (higher than the default value),
and waits for 300 seconds (5 minutes) before attempting to become the active router:
Switch#
configure terminal
Switch(config)#
interface gigabitethernet1/0/1
Switch(config-if)#
no switchport
Switch(config-if)#
standby ip 172.20.128.3
Switch(config-if)#
standby priority 120 preempt delay 300
Switch(config-if)#
end
Step 4
standby
[
group-number
]
preempt
[
delay
[
minimum
seconds
]
[
reload
seconds
]
[
sync
seconds
]]
Configure the router to
preempt
, which means that when the local router has
a higher priority than the active router, it becomes the active router.
•
(Optional)
group-number
—The group number to which the command
applies.
•
(Optional)
delay minimum
—Set to cause the local router to postpone
taking over the active role for the number of seconds shown. The range is
0 to 36000 seconds (1 hour); the default is 0 (no delay before taking over).
•
(Optional)
delay reload
—Set to cause the local router to postpone taking
over the active role after a reload for the number of seconds shown. The
range is 0 to 36000 seconds (1 hour); the default is 0 (no delay before
taking over after a reload).
•
(Optional)
delay sync
—Set to cause the local router to postpone taking
over the active role so that IP redundancy clients can reply (either with an
ok
or
wait
reply) for the number of seconds shown. The range is 0 to 36000
seconds (1 hour); the default is 0 (no delay before taking over).
Use the
no
form of the command to restore the default values.
Step 5
standby
[
group-number
]
track
type number
[
interface-priority
]
Configure an interface to track other interfaces so that if one of the other
interfaces goes down, the device’s Hot Standby priority is lowered.
•
(Optional)
group-number
—The group number to which the command
applies.
•
type—
Enter
the interface type (combined with interface number) that is
tracked.
•
number—
Enter
the interface number (combined with interface type) that is
tracked.
•
(Optional)
interface-priority—
Enter the amount by which the hot standby
priority for the router is decremented or incremented when the interface
goes down or comes back up. The default value is 10.
Step 6
end
Return to privileged EXEC mode.
Step 7
show running-config
Verify the configuration of the standby groups.
Step 8
copy running-config
startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose
Содержание Catalyst 3750-E Series
Страница 48: ...Contents xlviii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...
Страница 52: ...lii Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 Preface ...
Страница 1414: ...Index IN 58 Catalyst 3750 E and 3560 E Switch Software Configuration Guide OL 9775 08 ...