CLI ReferenceInterface Configuration Commands MSTP Configuration Commands
The following example sets the device priority of Instance 20 to 8192.
Ruijie(config-if)# spanning-tree mst 20 priority 8192
You can verify your settings by entering the privileged command ―show spanning-tree mst
instance interface instance-id‖.
Show the MSTP information of an interface.
spanning-tree mst port-priority
Set port priority of different instances.
spanning-tree pathcost method
This command is used to configure the path cost of a port. You can use the no option of the
command to restore the default setting.
spanning-tree pathcost method { { long [ standard ] } | short }
no spanning-tree pathcost method
Adopt the 802.1t standard to set path cost.
The ―standard‖ indicates to use the expression
recommended by the standard to calculate the cost.
Adopt the 802.1d standard to set path cost.
The 802.1T standard is adopted to set path cost by default.
Global configuration mode
Ruijie(config-if)# spanning-tree pathcost method long
show spanning-tree interface
Show the STP configuration of the interface.