Command Manual - STP
Quidway S6500 Series Ethernet Switches Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-14
When MSTP is disabled, the corresponding port stays in forwarding state and does not
take part in any STI calculation.
Caution:
Loop may be generated, if you disable MSTP on the port.
For the related command, see stp mode, stp.
Example
# Enable MSTP on Ethernet2/0/1 in system view.
[Quidway] stp interface Ethernet2/0/1 enable
1.1.15 stp interface cost
Syntax
stp interface interface-list [ instance instance-id ] cost cost
undo stp interface interface-list [ instance instance-id ] cost
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16. The
Instance 0 represents CIST.
cost cost: Specifies the path cost of the port, ranging from 1 to 200000000.
Description
Using stp interface instance cost command, you can configure the path cost of the
specified port on the specified STI in system view.,. Using undo stp interface
instance cost command, you can restore the path cost to default value.
By default, switch calculates the path costs of a port on different STIs.