12.
Spanning Tree Protocol (STP)
MN700004 Rev 01
112
STP Configuration Commands in Protocol Configuration
Mode
spanning-tree
The
spanning-tree
command, in Protocol Configuration mode, displays the current STP
parameter configuration. To display Spanning-Tree topology for a specified port or all ports,
use the
show spanning-tree interface
command or the
show spanning-tree
command
in
Privileged mode.
Command Syntax
device-name
(cfg protocol)#
spanning-tree
Example
device-name
(cfg protocol)#
spanning-tree
Spanning tree enabled
ProtocolSpecification = ieee8021d
Priority = 32768
TimeSinceTopologyChange = 18364 (sec)
TopChanges = 107
DesignatedRoot = 32768.00:A0:12:0F:18:4D
RootCost = 19
RootPort = 1/1/1
MaxAge = 20 (sec)
HelloTime = 1 (sec)
HoldTime = 1 (sec)
BridgeMaxAge = 20 (sec)
BridgeHelloTime = 1 (sec)
BridgeForwardDelay = 15
(sec)
DetectLineCRCReconfig = disabled
spanning-tree enable/disable
The
spanning-tree enable/disable
command, in Protocol Configuration mode,
enables/disables the Spanning Tree option.
The Spanning Tree algorithm dynamically creates a tree through the network used to
efficiently direct packets to their destinations. When STP is enabled, the unit acts as a node in
the tree. When STP is disabled, you can still use the other commands to set the STP
configuration. These settings are preserved when STP is enabled. To disable the spanning
tree you can also use the
no
form of the command.
By default, STP is disabled.
Command Syntax
device-name
(cfg protocol)#
spanning-tree
{
enable
|
disable
}
device-name
(cfg protocol)#
no spanning-tree
Argument Description
enable
Enables the Spanning Tree.
disable
Disables the Spanning Tree.