Command Line Interface
4-170
4
spanning-tree
This command enables the Spanning Tree Algorithm globally for the switch. Use the
no form to disable it.
Syntax
[no] spanning-tree
Default Setting
Spanning tree is enabled.
Command Mode
Global Configuration
Command Usage
The Spanning Tree Algorithm (STA) can be used to detect and disable
network loops, and to provide backup links between switches, bridges or
routers. This allows the switch to interact with other bridging devices (that is,
an STA-compliant switch, bridge or router) in your network to ensure that only
one route exists between any two stations on the network, and provide backup
links which automatically take over when a primary link goes down.
max-hops Configures the maximum number of hops allowed in the
region before a BPDU is discarded
MST 4-179
spanning-tree
spanning-disabled
Disables spanning tree for an interface IC 4-179
spanning-tree cost Configures the spanning tree path cost of an interface IC 4-180
spanning-tree port-priority Configures the spanning tree priority of an interface IC 4-181
spanning-tree edge-port Enables fast forwarding for edge ports IC 4-182
spanning-tree portfast Sets an interface to fast forwarding IC 4-183
spanning-tree link-type Configures the link type for RSTP/MSTP IC 4-184
spanning-tree mst cost Configures the path cost of an instance in the MST IC 4-185
spanning-tree mst
port-priority
Configures the priority of an instance in the MST IC 4-186
spanning-tree
protocol-migration
Re-checks the appropriate BPDU format PE 4-186
show spanning-tree Shows spanning tree configuration for the common
spanning tree (i.e., overall bridge), a selected interface, or
an instance within the multiple spanning tree
PE 4-187
show spanning-tree mst
configuration
Shows the multiple spanning tree configuration PE 4-189
Table 4-15 Spanning Tree Commands (Continued)
Command Function Mode Page