User's Manual

Table Of Contents
237
Users Manual of CS-6306R
Command Purpose
spanning-tree port-priorityvalue
Sets the port priority in all spanning tree instances.
value stands for the port priority. It 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 mstpinstance-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.
Run the following command to check the information about the MSTP port.
Command Purpose
show spanning-tree
mstpinterfaceinterface-id
Check MSTP port information.
interface-id stands for the port name, such as
“F0/1” and “FastEtnernet0/3”.
19.2.3.11 Configuring Path Cost of the Port
In MSTP, the default value of the ports 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 same path 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
spanning-tree mstpinstance-idcostcost
Sets the path cost of the port.
instance-id stands for the number of the spanning
tree instance, ranging from 0 to 15.
cost stands for the path cost of the port, which
ranges from 1 to 200000000.
spanning-tree costvalue
Sets the path cost of the port in all spanning tree
instances.
Value stands for the path cost of the port, which
ranges from 1 to 200000000.
no spanning-tree mstpinstance-idcost
Resumes the path cost of the port to the default
value.
no spanning-tree cost Resumes the path cost of the port to the default
value in all spanning tree instances.