Command Manual - STP
Quidway S3500 Series Ethernet Switches
Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-20
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
instance-id
: Specifies the spanning tree instance ID, ranging from 0 to 16, instance 0 is
CIST.
cost cost
: Specifies the path cost of the port, ranging from 1 to 200000.
Description
Using
stp interface cost
command, you can configure the path cost of the specified
port on the specified STI in system view. Using
undo stp interface cost
command,
you can restore the path cost to default value. If user doesn’t input parameter “
instance
instance-id
“ when configuring switch, the configuration will only be effective on CIST.
By default, the path cost of the port on every STI is associated with the port speed. For
details, refer to the table in the configuration guideline.
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.
The default values of the path cost varies with the different port speeds, as described in
the following table.
Table 1-5
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 cost
.
Example
# Set the path cost of Ethernet 0/3 on STI 2 to 400 in system view.
[Quidway] stp interface ethernet 0/3 instance 2 cost 400