Configuration Guide MSTP Configuration
Ruijie(config-if)# spanning-tree [mst
instance-id] cost cost
Configure different priorities for different
instances. The command without the
instance-id parameter will configure a port
priority for instance 0.
instance-id: Interface ID in the range of 0
to 64.
cost: Path cost of the port in the range of 1
to 200,000,000. The default value is
calculated by the media rate of the port
automatically.
Return to the privileged EXEC mode.
Ruijie# show spanning-tree [mst
instance-id] interface interface-id
Verify the configuration.
Ruijie# copy running-config
startup-config
To restore the path cost of a port to the default value, execute the no
spanning-tree mst cost command in the interface configuration mode.
Configuring the Default Calculation Method of Path Cost (path cost method)
If the path cost of a port is the default value, the device will calculate the path
cost of this port by port rate. However, IEEE 802.1d and IEEE 802.1t specify
different path cost values for a port rate respectively. The value range of the
802.1d is short (1 to 65535), while the value range of the 802.1t is long (1 to
200,000,000). Administrators should unify the path cost standard of the whole
network. The default mode is long (IEEE 802.1t Mode).
The following table lists the path costs set for different port rates in two
standards.
To configure the default calculation method of path cost, execute the following
commands in the privileged mode: