Command Guide of WGSW-28040
309
Switch#
configure
Switch(config)#
spanning-tree pathcost method short
4.26.11 spanning-tree port-priority
Command:
spanning-tree port-priority <0-240>
Parameter:
<0-240>
Specify the STP port priority. It must multiples of 16.
Default:
spanning-tree port-priority = 128
Mode:
Port Configuration
Usage Guide:
This command per port configures the STP port priority. The configuration could be shown by “show spanning-tree
interface” command.
Example:
This example sets port gi1 STP port priority to 64.
Switch#
configure
Switch(config)#
interface gi1
Switch(config-if)#
spanning-tree port-priority 64
4.26.12 spanning-tree cost
Command:
spanning-tree cost <0-200000000>
Parameter:
<0-200000000>
Specify the STP port cost. In short pathcost method, the range is from 0 to 65535. ( 0 =