OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : Spanning Tree Protocol Commands : bridge spanning-tree pathcost
bridge spanning-tree pathcost
Use this command to set a spanning-tree path cost method.
If the short parameter is used, the switch uses a value for the default path cost a number in the range 1 through 65,535. If the long parameter is used, the switch uses a value for the default path cost a number in the range 1 through 200,000,000. Use the show spanning-tree to view the administratively configured and current running pathcost method running on a bridge.
Use the no option with this command to return the path cost method to the default setting.
Command Syntax
bridge <1-32> spanning-tree pathcost method (short|long)
no bridge <1-32> spanning-tree pathcost method
Parameters
<1-32>
Specify the bridge group ID.
method
Method used to calculate default port path cost.
long
Use 16-bit based values for default port path costs.
short
Use 32-bit based values for default port path costs.
Default
By default, path cost method for STP is short and for MSTP/RSTP is long.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#bridge 1 spanning-tree pathcost method short
 
(config)#no bridge 1 spanning-tree pathcost method
Last modified date: 10/12/2023