16-7
Spanning Tree Protocol (STP)
CLI: Configuring STP
Spanning Tree Protocol
(STP)
Caution Because incorrect STP settings can adversely affect network performance,
HP recommends that you use the default STP parameter settings. You should
not change these settings unless you have a strong understanding of how STP
operates. For more on STP, see the IEEE 802.1D standard.
HP4108(config)# spanning treeEnables STP on the switch.
Reconfiguring General STP Operation on the Switch. You can config-
ure one or more of the following parameters:
Table 16-1.General STP Operating Parameters
Note Executing spanning-tree alone enables STP. Executing spanning-tree with one
or more of the above “STP Operating Parameters” does not enable STP. It only
configures the STP parameters (regardless of whethe r STP is actually running
(enabled) on the switch).
Syntax: spanning-tree
priority <0 - 65355>
maximum-age <6 - 40 seconds>
hello-time <1 - 10 seconds>
forward-delay <4 - 30 seconds>
Default: See table 16-1, above.
Name Default Range Function
priority 32768 0 - 65535 Specifies the priority value used along with the
switch MAC address to determine which device i s
root. The lower a priority value, the higher the
priority.
*maximum-age 20 seconds 6 - 40
seconds
Maximum received message age the switch
allows for STP information before discarding the
message.
*hello-time 2 seconds 1 - 10 Time between messages transmitted when the
switch is the root.
*forward-delay 15 s econds 4 - 30
seconds
Time the switch waits before transitioning from the
listening to the learning state, and between the
learning state to the forwarding state.
*The switch uses its own maximum-age, hello-time, and forwar d-delay settings only if it is
operating as the root device. If anothe r device is operating as t he root device, then the switch
uses the other device’s settings for these parameters.