128
[Sysname] stp mode pvst
[Sysname] stp vlan 2 timer forward-delay 2000
stp timer hello
Syntax
stp
[
vlan
vlan-list
]
timer hello
time
undo stp
[
vlan
vlan-list
]
timer hello
View
System view
Default level
2: System level
Parameters
vlan vlan-list
: Specifies a VLAN list in the format of
vlan-list
= {
vlan-id
[
to
vlan-id
] }&<1-10>, where
the
vlan-id
argument represents the VLAN ID, in the range of 1 to 4094, and &<1-10>
indicates that
you can specify up to 10 VLAN IDs or VLAN ID ranges.
time
: Sets the hello time in 0.01 seconds, in the range of 100 to 1000 in increments of 100 (as in 100,
200, 300).
Description
Use
stp timer hello
to set the hello time of the device.
Use
undo stp timer hello
to restore the default.
By default, the hello time is 2 seconds.
Hello time is the time interval at which spanning tree devices send configuration BPDUs to maintain
spanning tree. If a device fails to receive configuration BPDUs within the set period of time, a new
spanning tree calculation process will be triggered due to timeout.
To set the hello time in STP/RSTP/MSTP mode, use this command without any VLAN specified. To
set the hello time for a specific VLAN or multiple VLANs in PVST mode, use this command with a
VLAN list specified.
Hewlett Packard Enterprise does not recommend that you set the hello time with this command.
Instead, you can specify the network diameter of the switched network by using the
stp
bridge-diameter
command and let spanning tree protocols automatically calculate optimal settings
of the hello timer. If the network diameter uses the default value, the hello timer also uses the default
value.
Related commands:
stp timer forward-delay
,
stp timer max-age
, and
stp bridge-diameter
.
Examples
# In MSTP mode, set the hello time to 4 seconds.
<Sysname> system-view
[Sysname] stp timer hello 400
# In PVST mode, set the hello time in VLAN 2 to 4 seconds.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 2 timer hello 400