Command Manual - STP
Quidway S2000 Series Ethernet Switches Chapter 1 RSTP Configuration Commands
1-5
1.1.5 stp cost
Syntax
stp cost cost
undo stp cost
View
Ethernet port view
Parameter
cost: Specifies the path cost, ranging from 1 to 200000.
Description
Using stp cost command, you can configure the path cost on a spanning tree for the
current Ethernet port. Using undo stp cost command, you can restore the default
cost.
By default, the bridge gets the path cost directly through the speed of the link
connected to the port.
The path cost of an Ethernet port is related to the link speed. You can refer to the
following table. RSTP will check the link speed of the port and get the path cost directly.
It is recommended to set the cost to the default value and let RSTP query the path
cost of the port.
Table 1-2 Path cost for ports at different link speeds
Link speed Recommended value Recommended range Range
10Mbps 2000 200 to 20000 1 to 200000
100Mbps 200 20 to 2000 1 to 200000
1Gbps 20 2 to 200 1 to 200000
10Gbps 2 2 to 20 1 to 200000
Example
# Configure the path cost of Ethernet0/1 to 200.
[Quidway-Ethernet0/1] stp cost 200
1.1.6 stp edged-port
Syntax
stp edged-port { enable | disable }
undo stp edged-port