C613-50170-01 Rev B
Command Reference for x510 Series
666
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
PANNING
T
REE
C
OMMANDS
SPANNING
-
TREE
ENABLE
spanning-tree enable
Overview
Use this command in Global Configuration mode to enable the specified spanning
tree protocol for all switch ports. Note that this must be the spanning tree protocol
that is configured on the device by the
Use the
no
variant of this command to disable the configured spanning tree
protocol. This places all switch ports in the forwarding state.
Syntax
spanning-tree {mstp|rstp|stp} enable
no spanning-tree {mstp|rstp|stp} enable
Default
RSTP is enabled by default for all switch ports.
Mode
Global Configuration
Usage
With no configuration, spanning tree is enabled, and the spanning tree mode is set
to RSTP. To change the mode, see
Examples
To enable STP in Global Configuration mode, enter the below commands:
awplus#
configure terminal
awplus(config)#
spanning-tree stp enable
To disable STP in Global Configuration mode, enter the below commands:
awplus#
configure terminal
awplus(config)#
no spanning-tree stp enable
To enable MSTP in Global Configuration mode, enter the below commands:
awplus#
configure terminal
awplus(config)#
spanning-tree mstp enable
To disable MSTP in Global Configuration mode, enter the below commands:
awplus#
configure terminal
awplus(config)#
no spanning-tree mstp enable
To enable RSTP in Global Configuration mode, enter the below commands:
awplus#
configure terminal
awplus(config)#
spanning-tree rstp enable
Parameter
Description
mstp
Enables or disables MSTP (Multiple Spanning Tree Protocol).
rstp
Enables or disables RSTP (Rapid Spanning Tree Protocol).
stp
Enables or disables STP (Spanning Tree Protocol).