69
Hardware
Command compatibility in Layer 2
aggregate interface view
MSR 930
Yes
MSR 20-1X
No
MSR 20
No
MSR 30
Yes
MSR 50
Yes
MSR 2600
Yes
MSR3600-51F Yes
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all member ports in the port group.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate
interface. Configured on a member port in an aggregation group, the setting takes effect only after
the port leaves the aggregation group.
To set the path cost of an MSTP port in a specific MSTI, use this command with the MSTI specified.
Path cost is an important factor in spanning tree calculation. Setting different path costs for a port in
MSTIs allows different VLAN traffic flows to be forwarded along different physical links and enables
VLAN-based load balancing.
The path cost setting of a port can affect the role selection of the port. When the path cost of a port is
changed, the system re-calculates the role of the port and initiates a state transition.
Examples
# In MSTP mode, set the path cost of port Ethernet 1/3 in MSTI 2 to 200.
<Sysname> system-view
[Sysname] interface ethernet 1/3
[Sysname-Ethernet1/3] stp instance 2 cost 200
Related commands
•
display
stp
•
stp
pathcost-standard
stp edged-port
Use
stp edged-port enable
to configure one or more ports as edge ports.
Use
stp edged-port disable
to configure one or more ports as non-edge ports.
Use
undo stp edged-port
to restore the default.
Syntax
stp edged-port
{
enable
|
disable
}
undo stp edged-port
Default
All ports are non-edge ports.
Views
Ethernet interface view, port group view, Layer 2 aggregate interface view