4 Command Line Interface

Spanning Tree Commands

This section includes commands that configure the Spanning Tree Algorithm (STA) globally for the switch, and commands that configure STA for the selected interface.

Table 4-54 Spanning Tree Commands

Command

Function

Mode

Page

 

 

 

 

spanning-tree

Enables the spanning tree protocol

GC

4-151

 

 

 

 

spanning-tree mode

Configures STP, RSTP or MSTP mode

GC

4-151

 

 

 

 

spanning-tree forward-time

Configures the spanning tree bridge forward time

GC

4-152

 

 

 

 

spanning-tree hello-time

Configures the spanning tree bridge hello time

GC

4-153

 

 

 

 

spanning-tree max-age

Configures the spanning tree bridge maximum age

GC

4-153

 

 

 

 

spanning-tree priority

Configures the spanning tree bridge priority

GC

4-154

 

 

 

 

spanning-tree

Configures the path cost method for RSTP/MSTP

GC

4-155

path-cost method

 

 

 

spanning-tree

Configures the transmission limit for RSTP/MSTP

GC

4-155

transmission-limit

 

 

 

spanning-tree

Changes to MSTP configuration mode

GC

4-156

mst-configuration

 

 

 

mst vlan

Adds VLANs to a spanning tree instance

MST

4-156

 

 

 

 

mst priority

Configures the priority of a spanning tree instance

MST

4-157

 

 

 

 

name

Configures the name for the multiple spanning tree

MST

4-157

 

 

 

 

revision

Configures the revision number for the multiple spanning

MST

4-158

 

tree

 

 

max-hops

Configures the maximum number of hops allowed in the

MST

4-159

 

region before a BPDU is discarded

 

 

spanning-tree

Disables spanning tree for an interface

IC

4-159

spanning-disabled

 

 

 

spanning-tree cost

Configures the spanning tree path cost of an interface

IC

4-160

 

 

 

 

spanning-tree port-priority

Configures the spanning tree priority of an interface

IC

4-161

 

 

 

 

spanning-tree edge-port

Enables fast forwarding for edge ports

IC

4-161

 

 

 

 

spanning-tree portfast

Sets an interface to fast forwarding

IC

4-162

 

 

 

 

spanning-tree link-type

Configures the link type for RSTP/MSTP

IC

4-163

 

 

 

 

spanning-tree mst cost

Configures the path cost of an instance in the MST

IC

4-163

 

 

 

 

spanning-tree mst

Configures the priority of an instance in the MST

IC

4-164

port-priority

 

 

 

spanning-tree

Re-checks the appropriate BPDU format

PE

4-165

protocol-migration

 

 

 

show spanning-tree

Shows spanning tree configuration for the common

PE

4-166

 

spanning tree (i.e., overall bridge), a selected interface, or

 

 

 

an instance within the multiple spanning tree

 

 

show spanning-tree mst

Shows the multiple spanning tree configuration

PE

4-168

configuration

 

 

 

4-150