Specifications

Spanning Tree Commands
3-119
3
Example
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.
spanning-tree
Use this command to enable 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
Console(config)#mac-address-table aging-time 300
Console(config)#
Table 3-46 Spanning Tree Commands
Command Function Mode Page
spanning-tree Enables the spanning tree protocol GC 3-119
spanning-tree mode Configures STP or RSTP mode GC 3-120
spanning-tree forward-time Configures the spanning tree bridge forward time GC 3-121
spanning-tree hello-time Configures the spanning tree bridge hello time GC 3-121
spanning-tree max-age Configures the spanning tree bridge maximum age GC 3-122
spanning-tree priority Configures the spanning tree bridge priority GC 3-123
spanning-tree pathcost
method
Configures the path cost method for RSTP GC 3-123
spanning-tree
transmission-limit
Configures the transmission limit for RSTP GC 3-124
spanning-tree cost Configures the spanning tree path cost of an interface IC 3-124
spanning-tree port-priority Configures the spanning tree priority of an interface IC 3-125
spanning-tree edge-port Enables fast forwarding for edge ports IC 3-126
spanning-tree portfast Sets an interface to fast forwarding IC 3-127
spanning-tree link-type Configures the link type for RSTP IC 3-128
spanning-tree
protocol-migration
Re-checks the appropriate BPDU format PE 3-128
show spanning-tree Shows spanning tree configuration for the overall bridge or
a selected interface
PE 3-129