Command Manual - STP
Quidway S3500 Series Ethernet Switches Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-12
If the current Ethernet port is connected to other switch, you can use the stp
edged-port disable or undo stp edged-port command to configure it as a non-edge
port. The stp edged-port enable command is used for configuring the port as an edge
port.
A port is considered as an edge port when it is directly connected to the user terminal,
instead of any other switches or shared network segments. The edge port will not
cause loop upon network topology changes. Accordingly, you can configure a port as
an edge port, so that it can transit to forwarding state fast. For this purpose, please
configure the Ethernet port directly connected to the user terminal as an edge port.
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 Ethernet 0/1 as an edge port.
[Quidway-Ethernet0/1] stp edged-port disable
1.1.13 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.