DES-7200 Configuration Guide Chapter 10 MSTP Configuration
10-27
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.
10.3.7 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.
Port Rate Interface IEEE 802.1d (short)
IEEE 802.1t
(long)
Common Port 100 2000000
10M
Aggregate Link 95 1900000
Common Port 19 200000
100M
Aggregate Link 18 190000
Common Port 4 20000
1000M
Aggregate Link 3 19000
To configure the default calculation method of path cost, execute the following
commands in the privileged mode:
Command Function
DES-7200# configure terminal
Enter the global configuration mode.
DES-7200(config)# spanning-tree
pathcost method long/short
Configure the default calculation method of
the port path cost as long or short, with long
by default.
DES-7200(config)# end
Return to the privileged EXEC mode.
DES-7200# show running-config
Verify the configuration.
DES-7200# copy running-config
startup-config
Save the configuration.