C
OMMAND

L

INE

I

NTERFACE

3-114

spanning-tree

Use this command to enable the Spanning Tree Protocol globally
for this switch. Use the no form to disable it.
Syntax
spanning-tree
no spanning-tree
Default Setting
Spanning Tree is enabled.
Command Mode
Global Configuration
Command Usage
The Spanning Tree Protocol 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 STP-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.
Example
The following example enables the Spanning Tree Protocol for this
switch:
spanning-tree
link-type
Configures the link type for RSTP IC 3-127
show
spanning-tree
Shows the Spanning Tree
configuration
PE 3-128
Console(config)#spanning-tree
Console(config)#
Command Function Mode Page
b_mgmt.book Page 114 Tuesday, July 8, 2003 5:24 PM