ECS2020 Series CLI Reference Guide R04

84
20
Global configuration mode
Sets the maximum hops count of the switch BPDU in global mode.
Set the BPDU maximum hops count to 30 times:
ECS2020-10P(config)# spanning-tree max-hops 30
spanning-tree pathcost method
By default, the port automatically calculates path consumption based on port rate and specifies the
criteria used when calculating path consumption. There are two calculation criteria: dot1D-1998
and dot1T-2001.
spanning-tree pathcost method [dot1D-1998|dot1T-2001]
Parameter
Description
Parameter
dot1D-1998
Uses the dot1D-1998 port path
consumption calculation criteria.
dot1T-2001
Uses the dot1T-2001 port path
consumption calculation criteria.
dot1T-2001
Global configuration mode
In global mode, sets the calculation method of switch port path consumption value.
Configure the port consumption value is calculated as dot1D-1998
:
ECS2020-10P(config)# spanning-tree pathcost method dot1D-1998
Command
Command
Description
show spanning-tree
View the current spanning tree status and
configuration.
Command
Command
Description
show spanning-tree
View the current spanning tree status
and configuration.
Default
Mode
Usage
Example
Default
Mode
Usage
Example