Configuring Multiple Spanning Tree Protocol

Multiple Spanning Tree Protocol can be enabled globally and MSTP bridge and global parameters can be configured.
  1. Enter the global configuration mode.
    device# configure terminal
  2. Enable MSTP scope.
    device(config)# mstp scope all
  3. Enable MSTP.
    device(config)# mstp start
  4. Set the MSTP name and revision number.
    device(config)# mstp name RUCKUS
    device(config)# mstp revision 4

    Each switch that is running MSTP is configured with a name and revision number. It applies to the switch which can have many different VLANs that can belong to many different MSTP regions.

  5. Configure an MSTP instance.
    device(config)# mstp instance 1 vlan 4 to 7

    In the example, an MSTP instance is configured with VLANs 4, 5, 6 and 7 mapped onto it.

    An MSTP instance is configured with an MSTP ID with one or more VLANs. The RUCKUS implementation of MSTP allows you to assign VLANS or ranges of VLANs to an MSTP instance before or after they have been defined.

    The system does not allow a Multiple Spanning Tree Instances (MSTI) without any VLANs mapped to it. Consequently, removing all VLANs from an MSTI, deletes the MSTI from the system.
  6. Change bridge priority for the MSTP instance.
    device(config)# mstp instance 1 priority 0
    You can set a priority to the instance that gives it forwarding preference over lower priority instances within a VLAN or on the switch. A higher number for the priority variable means a lower forwarding priority.
  7. Change the MSTP global parameters using force-version, forward-delay, hello-time, max-age, and max-hop keywords.
    device(config)# mstp force-version 0 forward-delay 10 hello-time 4 max-age 12 max-hops 9
  8. Configure a port as an operational edge port.
    device(config)# mstp admin-edge-port ethernet 1/1/1

    You can define specific ports as edge ports for the region in which they are configured to connect to devices (such as a host) that are not running STP, RSTP, or MSTP.

    You can also configure a Layer 3 switch to automatically set a port as an operational edge port if the port does not receive any BPDUs since link-up. A port can be set as an operational port globally to apply to all the ports on a router where it is configured.

    device(config)# mstp edge-port-auto-detect
  9. Set point-to-point link between ports to increase the speed of convergence.
    device(config)# mstp admin-pt2pt-mac ethernet 1/2/5 ethernet 1/4/5
The following example shows how to enable MSTP and configure bridge and MSTP global parameters.
device# configure terminal
device(config)# mstp scope all
device(config)# mstp start
device(config)# mstp name RUCKUS
device(config)# mstp revision 4
device(config)# mstp instance 1 vlan 4 to 7
device(config)# mstp instance 1 priority 0
device(config)# mstp force-version 0 forward-delay 10 hello-time 4 max-age 12 max-hops 9
device(config)# mstp admin-edge-port ethernet 1/1/1 
device(config)# mstp admin-pt2pt-mac ethernet 1/2/5 ethernet 1/4/5