Command Manual - STP
Quidway S3500 Series Ethernet Switches Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-13
You may specify the instance-id parameter as 0 to configure CIST path cost of the port.
The path cost has effect on the port role selection. A port can be configured with
different path costs on different MSTIs. Thus the traffic from different VLANs can run
over different physical links, thereby implementing the VLAN-based load-balancing.
MSTP will recalculate the port role and transit its state, upon the port path cost
changes.
If user doesn’t input parameter “instance instance-id“ when configuring switch, the
configuration will only be effective on CIST.
The default values of the path cost varies with the different port speeds, as described in
the following table.
Table 1-4 Cost corresponding to the port speed
Link speed
Recommended
value
Recommended
value range
Value range
10Mbps 2,000 200- 20000 1-200000
100Mbps 200 20-2000 1-200000
1Gbps 20 2-200 1-200000
10G/s 2 2-20 1-200000
Above 10G/s 1 1-2 1-200000
For the related command, see stp interface cost .
Example
# Set the path cost of Ethernet 0/3 on STI 2 to 200.
[Quidway-Ethernet0/3] stp instance 2 cost 200
1.1.14 stp priority
Syntax
stp [ instance instance-id ] priority priority
undo stp [ instance instance-id ] priority
View
System view
Parameter
instance-id: Ranges from 0 to 16.