Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Configuring Spanning Tree Protocols on EX Series Switches (J-Web Procedure)

 Note

This topic applies only to the J-Web Application package.

EX Series switches provide Layer 2 loop prevention through Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), Multiple Spanning Tree Protocol (MSTP), and VLAN Spanning Tree Protocol (VSTP). You can configure STP, RSTP, and MSTP by using the J-Web interface. You can configure bridge protocol data unit (BPDU) protection on interfaces to prevent them from receiving BPDUs that could result in STP misconfigurations, which could lead to network outages.

Note

In EX4300 switches, you can configure STP only by enabling RSTP and forcing it to act as STP. You need to select the Force STP check box from the RSTP configuration page.

To configure STP, MSTP, or RSTP for an EX Series switch by using the J-Web interface:

  1. Select Configure > Switching > Spanning Tree.

    The Spanning Tree Configuration page displays the spanning-tree protocol configuration parameters and a list of interfaces configured for each spanning-tree protocol configuration.

    Note

    After you make changes to the configuration on this page, you must commit the changes for them to take effect. To commit all changes to the active configuration, select Commit Options > Commit. See Using the Commit Options to Commit Configuration Changes for details about all commit options.

  2. Click one of the following options:
    • Add—Creates a spanning-tree protocol configuration.

      1. Select a protocol name.
      2. Enter information as described in Table 1.
      3. Click OK to apply changes to the configuration or click Cancel to cancel without saving changes.
    • Edit—Modifies a selected spanning-tree protocol configuration.

      1. Enter information as described in Table 1.
      2. Click OK to apply changes to the configuration or click Cancel to cancel without saving changes.
    • Delete—Deletes a selected spanning-tree protocol configuration.

Table 1: Spanning-Tree Protocol Configuration Parameters

Field

Function

Your Action

General

Protocol Name

Specifies the spanning-tree protocol type: STP, MSTP, or RSTP.

None.

Disable

Disables spanning-tree protocols on the interface.

To enable this option, select the check box.

BPDU Protect

Specifies BPDU protection on all edge interfaces on the switch.

To enable this option, select the check box.

Bridge Priority

Specifies the bridge priority. The bridge priority determines which bridge is elected as the root bridge. If two bridges have the same path cost to the root bridge, the bridge priority determines which bridge becomes the designated bridge for a LAN segment.

Select a value from the list.

Forward Delay

Specifies the number of seconds an interface waits before changing from spanning-tree learning and listening states to the forwarding state.

Type a value.

Hello Time

Specifies the time interval in seconds at which the root bridge transmits configuration BPDUs.

Type a value.

Max Age

Specifies the maximum-aging time in seconds for all MST instances. The maximum aging time is the number of seconds a switch waits without receiving spanning-tree configuration messages before attempting a reconfiguration.

Type a value.

Max Hops

(MSTP only) Specifies the number of hops in a region before the BPDU is discarded.

Type a value.

Configuration Name

(MSTP only) Specifies the MSTP region name carried in the MSTP BPDUs.

Type a name.

Revision Level

(MSTP only) Specifies the revision number of the MSTP configuration.

Type a value.

Force STP Version

Note: This option is supported only on EX4300 switches.

Enables or disables STP.

To enable this option, select the check box.

Ports

Interface Name

Specifies an interface for the spanning-tree protocol.

  1. Click the Ports tab.
  2. Choose one of the following options:
    • Click Add and select an interface from the list. For an EX8200 Virtual Chassis configuration, select the member, FPC, and the interface from the list.

    • Select an interface in the Port/State table and click Edit.

    • To delete an interface from the configuration, select it in the Port/State table and click Remove.

Cost

Specifies the link cost to determine which bridge is the designated bridge and which interface is the designated interface.

Type a value.

Priority

Specifies the interface priority to determine which interface is elected as the root port.

Select a value from the list.

Disable Port

Note: This option is not supported on EX4300 switches.

Disables the spanning-tree protocol on the interface.

To enable the option, select the check box.

Edge

Configures the interface as an edge interface. Edge interfaces immediately transition to a forwarding state.

To enable the option, select the check box.

No Root Port

Specifies an interface as a spanning-tree designated port. If the bridge receives superior STP BPDUs on a root-protected interface, that interface transitions to a root-prevented STP state (inconsistency state) and the interface is blocked. This blocking prevents a bridge that should not be the root bridge from being elected the root bridge. When the bridge stops receiving superior STP BPDUs on the root-protected interface, interface traffic is no longer blocked.

To enable the option, select the check box.

Interface Mode

Specifies the link mode.

  1. To enable the option, select the check box.
  2. Select one of the following:
    • Point to Point—For a full-duplex link, the default link mode is point-to-point.

    • Shared—For a half-duplex link, the default link mode is shared.

BPDU Timeout Action

Specifies the BPDU timeout action for the interface.

Select one of the following options:

  • Log

  • Block

Note: For EX4300 switches, you can select one of the following options:

  • Alarm

  • Block

MSTI

(MSTP only)

MSTI Name

Specifies a name (an MSTI ID) for the MST instance.

  1. Click the MSTI tab.
  2. Choose one of the following options:
    • Click Add.

    • Select an MSTI ID and click Edit.

    • To delete an MSTI from the configuration, select the MSTI ID and click Remove.

Note: For EX4300 switches, the MSTI ID can be 1 through 64.

Bridge Priority

Specifies the bridge priority. The bridge priority determines which bridge is elected as the root bridge. If two bridges have the same path cost to the root bridge, the bridge priority determines which bridge becomes the designated bridge for a LAN segment.

Select a value from the list.

VLAN ID

Specifies the VLAN for the MST instance.

In the VLAN box, choose one of the following options:

  • Click Add, select a VLAN from the list, and click OK.

  • To remove a VLAN association, select the VLAN ID, click Remove, and click OK.

Interfaces

Specifies an interface for the MST instance.

  1. In the Interfaces box, click Add and select an interface from the list, or select an interface from the list and click Edit.
  2. Specify the link cost to determine which bridge is the designated bridge and which interface is the designated interface.
  3. Specify the interface priority to determine which interface is elected as the root port.
  4. If you want to disable the interface, select the check box.
  5. Click OK.

To delete an interface configuration, select the interface, click Remove, and click OK.