User's Manual
267
no spanning-tree mstp diameter
Resumes net-diameter to the default value.
The net-diameter parameter is not saved as an independent configuration in the switch. Only the time
parameter which is modified through network diameter configuration can be saved.
36.3.9 Configuring maximum hop count
Use the following command to configure the max hop-count.
Command Purpose
spanning-tree mstp max-hops
hop-count Set the maximum hops.
hop-count: value range: 6-40 Default value: 20
no spanning-tree mstp
max-hops
Resume the maximum hop count to the default
value.
36.3.10 Setting the Port Priority
If a loop occurs between two ports of the switch, the port with higher priority will enterthe forwarding state and
the port with lower priority is blocked. If all ports have thesame priority, the port with smaller port number will
first enter the forwarding state.
In port configuration mode, run the following command to set the priority of the STPport:
Command Purpose
spanning-tree mstp
instance-id
port-priority
priority
Sets the priority of the STP port.
instance-id represents the number of the spanning
treeinstance, ranging from 0 to 15.
priority stands for the port priority. It can be one of
thefollowing values:
0, 16, 32, 48, 64, 80, 96, 112
128, 144, 160, 176, 192, 208, 224, 240,
spanning-tree port-priority
value Sets the port priority in all spanning tree instances.
value: value of the port priority, which can be one
of the following values.
0, 16, 32, 48, 64, 80, 96, 112
128, 144, 160, 176, 192, 208, 224, 240,
no spanning-tree mstp
instance-id
port-priority
Resumes the port priority to the default value.
no spanning-tree port-priority
Resumes the port priority to the default value in all
spanning tree instances.
36.3.11 Value of the path cost of a port
In MSTP, the default value of the port’s path cost is based on the connection rate. If a loop occurs between
two switches, the port with less path cost will enter the forwarding state. The less the path cost is, the higher
rate the port is. If all ports have the samepath cost, the port with smaller port number will first enter the
forwarding state.
In port configuration mode, run the following command to set the path cost of the port:
Command Purpose