Enabling 802.1W Single Rapid Spanning Tree Protocol

Single Rapid Spanning Tree Protocol can be enabled at system or global level.

Enable SRSTP only if the device contains more than one port-based VLAN and you want all the ports to be in the same STP broadcast domain. If the device has only one port-based VLAN (the default VLAN), then the device is already running a single instance of STP. In this case, you do not need to enable RSTP.

  1. Enter the global configuration mode.
    device# configure terminal
  2. Configure a single rapid spanning tree.
    device(config)# spanning-tree single 802-1w
  3. Change STP bridge parameters by using the forward-delay, hello-time, max-age, and priority keywords.
    device(config)# spanning-tree single 802-1w forward-delay 4 hello-time 3 max-age 10
    priority 0
  4. Change global STP parameter for all the ports or for a specific port using the priority keyword.
    device(config)# spanning-tree single 802-1w priority 0
    device(config)# spanning-tree single 802-1w ethernet 1/1/1 priority 0

The following example shows how to enable SRSTP for all the ports. Bridge and port parameters are configured.

device# configure terminal
device(config)# spanning-tree single 802-1w
device(config)# spanning-tree single 802-1w forward-delay 4 hello-time 3 max-age 10
priority 0
device(config)# spanning-tree single 802-1w priority 0

The following example shows how to enable SRSTP for a specific port (including edge, point-to-point, and LAG ports). Bridge and port parameters are configured.

device# configure terminal
device(config)# spanning-tree single 802-1w
device(config)# spanning-tree single 802-1w forward-delay 4 hello-time 3 max-age 10
priority 0
device(config)# spanning-tree single 802-1w ethernet 1/1/1 priority 0
device(config)# spanning-tree single 802-1w ethernet 1/1/1 admin-edge-port
device(config)# spanning-tree single 802-1w ethernet 1/1/10 admin-pt2pt-mac
device(config)# spanning-tree single 802-1w lag 1 admin-pt2pt-mac