CLI Reference Guide-R04

Table Of Contents
Chapter 20
| Spanning Tree Commands
– 521 –
Command Mode
Global Configuration
Command Usage
The path cost method is used to determine the best path between devices.
Therefore, lower values should be assigned to ports attached to faster media,
and higher values assigned to ports with slower media. Note that path cost
(page 529) takes precedence over port priority (page 536).
The path cost methods apply to all spanning tree modes (STP, RSTP and MSTP).
Specifically, the long method can be applied to STP since this mode is
supported by a backward compatible mode of RSTP.
Example
Console(config)#spanning-tree pathcost method long
Console(config)#
spanning-tree priority This command configures the spanning tree priority globally for this switch. Use
the no form to restore the default.
Syntax
spanning-tree priority priority
no spanning-tree priority
priority - Priority of the bridge. (Range – 0-61440, in steps of 4096; Options:
0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960,
45056, 49152, 53248, 57344, 61440)
Default Setting
32768
Command Mode
Global Configuration
Command Usage
Bridge priority is used in selecting the root device, root port, and designated port.
The device with the highest priority (i.e., lower numeric value) becomes the STA
root device. However, if all devices have the same priority, the device with the
lowest MAC address will then become the root device.
Example
Console(config)#spanning-tree priority 40000
Console(config)#