Stp Cost - H3C s3600 series Command Manual

Hide thumbs Also See for s3600 series:
Table of Contents

Advertisement

[Sysname] stp config-digest-snooping

stp cost

Syntax
stp [ instance instance-id ] cost cost
undo stp [ instance instance-id ] cost
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. 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.
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 restore 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 in CIST.
The path cost of a port affects its port role. 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 1/0/3 in MSTI 2 to 200.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] stp instance 2 cost 200
1-18

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents