H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – MSTP
H3C S7500 Series Ethernet Switches Chapter 1
MSTP Configuration Commands
1-14
Description
Use the stp cost command to set the path cost of the current port in a specified MSTI.
Use the undo stp cost command to revert to the default path cost of the current port in
the specified MSTI.
By default, a switch automatically calculates the path costs of a port in different MSTIs
based on a specified standard.
If you specify the instance-id argument to be 0 or do not specify this argument, the stp
cost command sets the path cost of the port on CIST.
The path costs of a port in MSTIs affect the roles of the ports in the MSTIs. By
configuring different path costs for the same port in different MSTIs, you can make
flows of different VLANs travel along different physical links, so as to achieve
VLAN-based load balancing. Changing the path cost of a port in an MSTI may change
the role of the port in the instance and put it in state transition.
Related commands: stp interface cost.
Examples
# Set the path cost of Ethernet 2/0/3 in MSTI 2 to 200.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet2/0/3
[H3C-Ethernet2/0/3] stp instance 2 cost 200
1.1.14 stp edged-port
Syntax
stp edged-port { enable | disable }
undo stp edged-port
View
Ethernet port view
Parameters
enable: Configures the current Ethernet port as an edge port.
disable: Configures the current Ethernet port as a non-edge port.
Description
Use the stp edged-port enable command to configure the current Ethernet port as an
edge port.