User's Manual

265
STP time parameters. When the secondary root becomes the primary root and starts working, all these
parameters starts functioning.
Run the following command to set the switch to the secondary root of the network:
Command Purpose
spanning-tree mstp
instance-id
root secondary
[
diameter
net-diameter [
hello-time
seconds ] ]
Sets the switch to the secondary root in the
designated spanning tree instance.
instance-id represents the number of the spanning
treeinstance, ranging from 0 to 15.
net-diameter represents the network diameter,
which is anoptional parameter. It is effective when
instance-id is 0. It ranges from 2 to 7.
seconds represents the unit of the hello time,
ranging from1 to 10.
no spanning-tree mstp
instance-id
root
Cancels the root configuration of the switch in the
spanning tree.
instance-id represents the number of the spanning
treeinstance, ranging from 0 to 15.
Run the following command to check the MSTP message:
Command Purpose
show spanning-tree mstp
[
instance
instance-id ]
Checks the MSTP message.
36.3.6 Configuring Bridge Priority
In some cases, you can directly set the switch to the network root by configuring the bridge priority. It means
that you can set the switch to the network root without running the subcommand root. The priority value of the
switch is independent in eachspanning tree instance. Therefore, the priority of the switch can be set
independently.
Run the following command to configure the priority of the spanning tree:
Command Purpose
spanning-tree mstp
instance-id
priority
value Sets the priority of the switch.
instance-id represents the number of the spanning
treeinstance, ranging from 0 to 15.
value represents the priority of the bridge. It can be
one ofthe following values:
0, 4096, 8192, 12288, 16384, 20480, 24576,
28672,32768, 36864, 40960, 45056, 49152, 53248,
57344, 61440
no spanning-tree mstp
instance-id
priority
Resumes the bridge priority of the switch to the
defaultvalue.
instance-id represents the number of the spanning
treeinstance, ranging from 0 to 15.
36.3.7 Configuring time parameters of STP
The following are STP time parameters: