H3C S3100 Series Command Manual page 259

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

System view:
stp interface interface-list [ instance instance-id ] cost cost
undo stp interface interface-list [ instance instance-id ] cost
View
System view, Ethernet port view
Parameters
instance-id: ID of an MSTI ranging from 0 to 16. The value of 0 refers to the CIST.
cost: Path cost to be set for the port. STP uses path costs to indicate the quality of links. A smaller path
cost indicates a higher link quality. The range of the cost argument varies with the standard used for
calculating the default path cost of a port as follows:
With the IEEE 802.1D-1998 standard selected, the path cost of an Ethernet port ranges from 1 to
65535.
With the IEEE 802.1t standard selected, the path cost of an Ethernet port ranges from 1 to
200000000.
With the proprietary standard selected, the path cost of an Ethernet port ranges from 1 to 200000.
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this argument in the
form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>,
where &<1-10> means that you can provide up to 10 port indexes/port index ranges for this argument.
Description
Use the stp cost command to set the path cost of the current port in a specified MSTI in ethernet
port view. Use the undo stp cost command to restore the default path cost of the current port in
the specified MSTI in ethernet port view.
Use the stp interface cost command to set the path cost(s) of the specified port(s) in a specified
MSTI in system view. Use the undo stp interface cost command to restore the default value of
the path cost(s) of the specified port(s) in the specified MSTI in system view.
By default, a switch automatically calculates the path costs of a port in different MSTIs based on a
specified standard.
Path cost is an important factor in spanning tree calculation. Setting different path costs for a port in
MSTIs allows VLAN traffic flows to be forwarded along different physical links, thus achieving
VLAN-based load balancing.
Note that:
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 in CIST.
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.
Ports with different rates have different default path costs. For details, see
Examples
# Set the path cost of Ethernet 1/0/1 in MSTI 2 to 200.
Set the path cost of Ethernet 1/0/1 in MSTI 2 to 200 in Ethernet port view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
1-20
Table
1-8.

Advertisement

Table of Contents
loading

Table of Contents