Configures the 802.1w parameters.

spanning-tree 802-1w [single ] [ force-version number] [ forward-delay seconds ] [ hello-time seconds ] [ max-age seconds ] [ priority number ]
no spanning-tree 802-1w [ single ] [ force-version number ] [ forward-delay seconds ] [ hello-time seconds ] [ max-age seconds ] [ priority number ]

Interface configuration mode

spanning-tree 802-1w { admin-edge-port | admin-pt2pt-mac}
no spanning-tree 802-1w { admin-edge-port | admin-pt2pt-mac}

The 802.1w port parameters are preconfigured with default values.

single
Configures Single STP.
force-version number
Forces the bridge to send BPDUs in a specific format. 0 for STP compatibility mode and 2 for RSTP default mode.
forward-delay seconds
Configures the time period a port waits before it forwards an RST BPDU after a topology change. This value ranges from 4 through 30 seconds. The default is 15 seconds.
hello-time seconds
Configures the time interval between two Hello packets. This value ranges from 1 through 10 seconds. The default is 2 seconds.
max-age seconds
Configures the time period the device waits to receive a Hello packet before it initiates a topology change. The time period ranges from 6 through 40 seconds. The default is 20 seconds.
priority number
Configures the priority of the bridge. The value ranges from 0 through 65535. A lower numerical value means the bridge has a higher priority. Thus, the highest priority is 0. The default is 32768.
admin-edge-port
Configures the port to be an operational edge port for all VLANs.
admin-pt2pt-mac
Configures the port to be on a point-to-point link link for all VLANs.

Global configuration mode

VLAN configuration mode

Interface configuration mode

The value of max-age must be greater than the value of forward-delay to ensure that the downstream bridges do not age out faster than the upstream bridges (those bridges that are closer to the root bridge).

Configuring the STP parameters is optional. All parameters have default values. Additionally, all values will be globally applied to all ports on the system or on the port-based VLAN for which they are defined.

The no form of the command sets the parameters to the default values.

This command has same function as spanning-tree rstp. From 08.0.92 release onwards, spanning-tree rstp is deprecated.

The following example shows how to configure the 802.1w parameters.

device(config)# vlan 200
device(config-vlan-200)# spanning-tree 802-1w force-version 6 forward-delay 5 hello-time 4 max-age 4 priority 5