Configuring Rapid Spanning Tree Protocol

Configure Rapid Spanning Tree Protocol (RSTP) to reduce the recovery time after a network breakdown.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure RSTP:

    spanning-tree rstp [forward-time <400–3000>] [group-stp enable] [hello-time <100–1000>] [max-age <600–4000>] [pathcost-type <bits16|bits32>] [priority <0–61440>] [tx-holdcount <1–10>] [version <rstp|stp-compatible>]

Example

Configure RSTP:

Switch:1(config)# spanning-tree rstp forward-time 1000 hello-time 200 max-age 4000 pathcost-type bits16 priority 4096 tx-holdcount 10 version rstp group-stp enable

Variable Definitions

Use the data in the following table to use the spanning-tree rstp command.

Variable

Value

forward-time <400-3000>

Configures the RSTP forward delay for the bridge in hundredths of a second.

group-stp enable

Enables or disables RSTP for a specific STG. Enter the no form of the command to disable RSTP for the STG (no spanning-tree rstp group-stp enable).

hello-time <100-1000>

Assigns the RSTP hello time delay for the bridge in hundredths of a second.

max-age <600-4000>

Assigns the RSTP maximum age time for the bridge in hundredths of a second.

pathcost-type {bits16|bits32}

Assigns the RSTP default pathcost version. The default is 32 bits.

priority <0-61440>

Assigns the RSTP bridge priority.

tx-holdcount <1-10>

Assigns the RSTP transmit hold count from 1 to 10. The default value is 6.

version {rstp/stp-compatible}

Sets the version to RSTP or STP compatible.