Installation manual
Command Manual - STP
Quidway S3000-EI Series Ethernet Switches Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-13
Because the edge port is not connected to any other switches, it will not receive the
configuration BPDUs from them. Before BPDU PROTECTION is enabled on the switch,
the port received a BPDU runs as a non-edge port, even if it is configured as edge port.
For the related command, see stp interface edged-port.
Example
# Configure ethernet0/1 as an edge port.
[Quidway-Ethernet0/1] stp edged-port disable
1.1.14 stp cost
Syntax
stp [ instance instance-id ] cost cost
undo stp [ instance instance-id ] cost
View
Ethernet port view
Parameter
instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16, instance 0 is
CIST.
cost cost: Specifies the port path cost, ranging from 1 to 200000.
Description
Using stp cost command, you can configure the port path cost on the specified STI for
the current port. Using undo stp cost command, you can restore the path cost on the
specified STI.
By default, the path costs of a port on different STIs take the values associated with the
port speeds. For more description, refer to the table offered in the configuration
guideline of the stp interface cost command.
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.