![Huawei Quidway S6500 Series Command Manual Download Page 513](http://html.mh-extra.com/html/huawei/quidway-s6500-series/quidway-s6500-series_command-manual_167771513.webp)
Command Manual - STP
Quidway S6500 Series Ethernet Switches
Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-12
Description
Using
stp instance cost
command, you can configure the port path cost on the
specified STI for the current port. Using
undo stp instance cost
command, you can
restore the path cost on the specified STI.
By default, switch calculates the path costs of a port on different STIs. For more
description, refer to the table offered in the configuration guideline of the
stp interface
instance 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.
For the related command, see
stp interface instance cost
.
Example
# Set the path cost of Ethernet2/0/3 on STI 2 to 200.
[Quidway-Ethernet2/0/3] stp instance 2 cost 200
1.1.13 stp edged-port
Syntax
stp edged-port
{
enable
|
disable
}
undo stp edged-port
View
Ethernet port view
Parameter
enable
: Configure the current port as an edge port.
disable
: Configure the current port as a non-edge port.
Description
Using
stp edged-port
enable
command, you can configure the current Ethernet port
as an edge port. Using
stp edged-port disable
command, you can configure the
current Ethernet port as a non-edge port. Using
undo stp edged-port
command, you
can restore the default state, i.e., non-edge port.
By default, all the switch ports are configured as non-edge port.