To configure the
time between hello packets and the time before other routers declare the active
Hot Standby or standby router to be down, use the
hsrp timers
command in HSRP group submode. To restore the timers to their default values,
use the
no form of
this command.
timers {hello-seconds | msec hello-milliseconds} {hold-seconds | msec hold-milliseconds}
no timers
Syntax Description
hello-seconds
|
Hello
interval in seconds. Range is from 1 to 255. Default is 3.
|
msec
hello-milliseconds
|
Hello
interval in milliseconds. Range is from 100 to 3000.
|
hold-seconds
|
Time in
seconds before the active or standby router is declared to be down. Range is
from 1 to 255. Default is 10.
|
msec
hold-milliseconds
|
Time in
milliseconds before the active or standby router is declared to be down. Range
is from 100 to 3000.
|
Command Default
The default
hello-seconds is 3. (If the
msec keyword is
specified, there is no default value.)
The default
hold-seconds is 10. (If the
msec keyword is
specified, there is no default value.)
Command Modes
HSRP Group Submode
Command History
Release
|
Modification
|
Release 5.0.0
|
This
command was introduced.
|
Usage Guidelines
Nonactive routers
learn timer values from the active router, unless millisecond timer values are
being used. If millisecond timer values are being used, all routers must be
configured with the millisecond timer values. This rule applies if either the
hello time or the hold time is specified in milliseconds.
The timers
configured on the active router always override any other timer settings. All
routers in a Hot Standby group should use the same timer values. Normally, the
hold time is greater than or equal to three times the hello time (holdtime >
3 * hellotime).
You must specify
either the
hello-seconds
argument or the
msec
keyword and
hello-milliseconds
argument, depending on whether you want the hello time
in seconds or milliseconds. You must also specify either the
hold-seconds
argument or
msec keyword
and
hold-milliseconds argument, depending on whether
you want the hold time in seconds or milliseconds.
Task ID
Task ID
|
Operations
|
hsrp
|
read,
write
|
Examples
This example shows how to set, for group number 1 on
HundredGigE interface 0/2/0/1, the time between hello packets to 5 seconds and the time after which a router is considered to be down
to 15 seconds. The configured timer values are used only if the router is active (or before they have been learned).
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router hsrp
RP/0/RP0/CPU0:router(config-hsrp)# interface HundredGigE 0/4/0/4
RP/0/RP0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/RP0/CPU0:router(config-hsrp-ipv4)# hsrp 1
RP/0/RP0/CPU0:router(config-hsrp-gp)# timers 5 15
RP/0/RP0/CPU0:router(config-hsrp-gp)#
This example shows how to set, for group number 1 on
HundredGigEinterface 0/2/0/1, the time between hello packets to 200 milliseconds and the time after which a router is considered to be
down to 1000 milliseconds. The configured timer values are always used because milliseconds have been specified.
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# router hsrp
RP/0/RP0/CPU0:router(config-hsrp)# interface HundredGigE 0/4/0/4
RP/0/RP0/CPU0:router(config-hsrp-if)# address-family ipv4
RP/0/RP0/CPU0:router(config-hsrp-ipv4)# hsrp 1 version 2
RP/0/RP0/CPU0:router(config-hsrp-gp)# timers msec 200 msec 1000
RP/0/RP0/CPU0:router(config-hsrp-gp)#
Note
|
-
The
version
keyword is available only if IPv4 address-family
is selected. By default, version is set to 2 for IPv6 address families.
-
HSRP
version 2 provides an extended group range of 0-4095.
|