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 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.
If you specify the instance-id argument to be 0 or do not specify this argument, the stp interface cost
command sets the path cost(s) of the specified port(s) in the 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.
The default port path cost varies with port speed. Refer to
Related commands: stp cost.
Examples
# Set the path cost of Ethernet 1/0/3 in MSTI 2 to 400.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] stp interface Ethernet 1/0/3 instance 2 cost 400
stp interface edged-port
Syntax
stp interface interface-list edged-port { enable | disable }
undo stp interface interface-list edged-port
View
System view
Parameters
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.
enable: Configures the specified Ethernet port to be an edge port.
disable: Configures the specified Ethernet port to be a non-edge port.
Description
Use the stp interface edged-port enable command to configure the specified Ethernet ports as edge
ports in system view.
Table 1-8
for details.
1-25
Need help?
Do you have a question about the s3600 series and is the answer not in the manual?
Questions and answers