Related Documentation
- EX Series
- Configuring STP (CLI Procedure)
- Monitoring Spanning-Tree Protocols
- Unblocking an Interface That Receives BPDUs in Error (CLI Procedure)
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring Network Regions for VLANs with MSTP on EX Series Switches
- Example: Faster Convergence and Improved Network Stability with RSTP on EX Series Switches
Configuring Spanning-Tree Protocols (J-Web Procedure)
For 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:
- 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.
- Click one of the following options:
- Add—Creates
a spanning-tree protocol configuration.
- Select a protocol name.
- Enter information as described in Table 1.
- Click OK to apply changes to the configuration or click Cancel to cancel without saving changes.
- Edit—Modifies
a selected spanning-tree protocol configuration.
- Enter information as described in Table 1.
- Click OK to apply changes to the configuration or click Cancel to cancel without saving changes.
- Delete—Deletes a selected spanning-tree protocol configuration.
- Add—Creates
a 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. |
|
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. |
|
BPDU Timeout Action | Specifies the BPDU timeout action for the interface. | Select one of the following options:
Note: For EX4300 switches, you can select one of the following options:
|
MSTI (MSTP only) | ||
MSTI Name | Specifies a name (an MSTI ID) for the MST instance. |
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:
|
Interfaces | Specifies an interface for the MST instance. |
To delete an interface configuration, select the interface, click Remove, and click OK. |
Related Documentation
- EX Series
- Configuring STP (CLI Procedure)
- Monitoring Spanning-Tree Protocols
- Unblocking an Interface That Receives BPDUs in Error (CLI Procedure)
- Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on EX Series Switches
- Example: Configuring Network Regions for VLANs with MSTP on EX Series Switches
- Example: Faster Convergence and Improved Network Stability with RSTP on EX Series Switches