Command Reference MSTP Commands
spanning-tree mst port-priority
Sets the port priority of an instance.
9.34 spanning-tree pathcost method
Use this command to configure the path cost of the port. Use the no form of this command to restore
the default setting.
spanning-tree pathcost method { { long [ standard } | short }
no spanning-tree pathcost method
Adopts the 802.1t standard to configure path cost.
The standard indicates that use the expression recommended by the
standard to calculate the cost value.
Adopts the 802.1d standard to configure path cost.
802.1T standard is adopted to set path cost by default.
Global configuration mode.
If the port path cost uses the default value, the device automatically calculates the port path cost
based on the port rate.
The following example configures the path cost of the port.
Ruijie(config-if)# spanning-tree pathcost method long
show spanning-tree interface
Displays the STP configuration of the interface.
9.35 spanning-tree portfast
Use this command to enable the portfast on the interface. Use the disabled form of this command to
restore the default setting,
spanning-tree portfast [ disabled ]