Juniper EX9200 Features Manual

Juniper EX9200 Features Manual

Spanning-tree protocols feature guide ex series
Hide thumbs Also See for EX9200:
Table of Contents

Advertisement

Quick Links

Spanning-Tree Protocols Feature Guide for
EX9200 Switches
Modified: 2017-07-12
Copyright © 2017, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

Summary of Contents for Juniper EX9200

  • Page 1 Spanning-Tree Protocols Feature Guide for EX9200 Switches Modified: 2017-07-12 Copyright © 2017, Juniper Networks, Inc.
  • Page 2 END USER LICENSE AGREEMENT The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use with) Juniper Networks software. Use of such software is subject to the terms and conditions of the End User License Agreement (“EULA”) posted at http://www.juniper.net/support/eula.html.
  • Page 3: Table Of Contents

    (IEEE 802.1D STP) ........40 Copyright © 2017, Juniper Networks, Inc.
  • Page 4 Spanning-Tree Protocols Feature Guide for EX9200 Switches forward-delay ............41 hello-time .
  • Page 5 (Spanning Tree) ........189 Copyright © 2017, Juniper Networks, Inc.
  • Page 6 Spanning-Tree Protocols Feature Guide for EX9200 Switches vlan (VSTP) ............192 vlan-group .
  • Page 7 Figure 5: Network Topology for Loop Protection ......235 Figure 6: Network Topology for Root Protection ......240 Copyright © 2017, Juniper Networks, Inc.
  • Page 8 Spanning-Tree Protocols Feature Guide for EX9200 Switches viii Copyright © 2017, Juniper Networks, Inc.
  • Page 9 Table 21: show spanning-tree Interface Output Fields ..... 208 Table 22: show spanning-tree statistics Output Fields ..... 213 Copyright © 2017, Juniper Networks, Inc.
  • Page 10 Spanning-Tree Protocols Feature Guide for EX9200 Switches Part 4 BPDU Protection, Root Protection, and Loop Protection Chapter 10 Using BPDU Protection, Root Protection, and Loop Protection ..217 Table 23: Components of the Topology for Configuring BPDU Protection on EX Series Switches .
  • Page 11: About The Documentation

    ® To obtain the most current version of all Juniper Networks technical documentation, see the product documentation page on the Juniper Networks website at http://www.juniper.net/techpubs/ If the information in the latest release notes differs from the information in the documentation, follow the product Release Notes.
  • Page 12: Merging A Full Example

    Spanning-Tree Protocols Feature Guide for EX9200 Switches If the example configuration does not start at the top level of the hierarchy, the example is a snippet. In this case, use the command. These procedures are load merge relative described in the following sections.
  • Page 13: Documentation Conventions

    Alerts you to the risk of personal injury from a laser. Indicates helpful information. Best practice Alerts you to a recommended use or implementation. Table 2 on page xiv defines the text and syntax conventions used in this guide. Copyright © 2017, Juniper Networks, Inc. xiii...
  • Page 14: Table 2: Text And Syntax Conventions

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 2: Text and Syntax Conventions Convention Description Examples Bold text like this Represents text that you type. To enter configuration mode, type the configure command: user@host> configure Fixed-width text like this Represents output that appears on the user@host>...
  • Page 15: Documentation Feedback

    We encourage you to provide feedback, comments, and suggestions so that we can improve the documentation. You can provide feedback by using either of the following methods: Online feedback rating system—On any page of the Juniper Networks TechLibrary site http://www.juniper.net/techpubs/index.html , simply click the stars to rate the content, and use the pop-up form to provide us with information about your experience.
  • Page 16: Opening A Case With Jtac

    Download the latest versions of software and review release notes: http://www.juniper.net/customers/csc/software/ Search technical bulletins for relevant hardware and software notifications: http://kb.juniper.net/InfoCenter/ Join and participate in the Juniper Networks Community Forum: http://www.juniper.net/company/communities/ Open a case online in the CSC Case Management tool: http://www.juniper.net/cm/...
  • Page 17: Rstp

    PART 1 RSTP Using RSTP on page 3 Configuration Statements for RSTP on page 35 RSTP Monitoring Commands on page 57 Copyright © 2017, Juniper Networks, Inc.
  • Page 18 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 19: Using Rstp

    BPDUs Maintain the Spanning-Tree on page 5 When an RSTP Root Bridge Fails on page 6 Switches Must Relearn MAC Addresses After a Link Failure on page 6 Selecting a Spanning Tree Protocol on page 6 Copyright © 2017, Juniper Networks, Inc.
  • Page 20: Spanning Tree Protocols Help Prevent Broadcast Storms

    PC–along branches. A tree branch is a network segment, or link, between bridges. Switches that forward frames through an STP spanning tree are called designated bridges. Juniper Networks EX Series and QFX 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).
  • Page 21: Port States Determine How A Port Processes A Frame

    When a port receives a hello BPDU, it compares the information to that already stored for the receiving port. One of three actions takes place when a switch receives a BPDU: Copyright © 2017, Juniper Networks, Inc.
  • Page 22: When An Rstp Root Bridge Fails

    Spanning-Tree Protocols Feature Guide for EX9200 Switches If the BPDU data matches the existing entry in the MAC address table, the port resets a timer called max age to zero and then forwards a new BPDU with the current active topology information to the next port in the spanning tree.
  • Page 23: Using Rstp

    Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Example: Faster Convergence and Improved Network Stability with RSTP on EX Series Switches Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Configuring RSTP (CLI Procedure) on page 33 Copyright © 2017, Juniper Networks, Inc.
  • Page 24: Rstp Or Vstp Forced To Run As Ieee 802.1D Stp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches RSTP or VSTP Forced to Run as IEEE 802.1D STP On MX Series routers and EX Series and QFX Series switches in a Layer 2 environment, you can force the configured Rapid Spanning Tree Protocol (RSTP) or VLAN Spanning Tree Protocol (VSTP) to run as the original IEEE 802.1D Spanning Tree Protocol (STP)
  • Page 25: Rstp

    Configuring RSTP and Nonstop Bridging on Switch 4 on page 22 Verification on page 25 Requirements This example uses the following software and hardware components: Junos OS Release 15.1 or later or later for EX Series switches Four EX Series switches Copyright © 2017, Juniper Networks, Inc.
  • Page 26: Figure 1: Network Topology For Rstp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Before you configure the switches for RSTP, be sure you have: Installed and connected the four switches. See the hardware documentation for your switch. Performed the initial software configuration on all switches. See Connecting and Configuring an EX Series Switch (CLI Procedure) or Connecting and Configuring an EX Series Switch (J-Web Procedure).
  • Page 27: Table 4: Components Of The Topology For Configuring Rstp

    The designated port forwards data to the downstream network segment or device. The backup port is a backup port for the designated port. When a designated port goes down, the backup port becomes the active designated port and starts forwarding data. Copyright © 2017, Juniper Networks, Inc.
  • Page 28 Spanning-Tree Protocols Feature Guide for EX9200 Switches NOTE: You also can create a loop-free topology between the aggregation layer and the distribution layer using redundant trunk links. For more information about configuring redundant trunk links, see Example: Configuring Redundant Trunk Links for Faster Recovery.
  • Page 29 Enable nonstop bridging: [edit protocols layer2-control] user@switch1# set nonstop-bridging NOTE: This process enables NSB for all NSB-supported Layer 2 protocols on the switch, including RSTP. Results Check the results of the configuration: Copyright © 2017, Juniper Networks, Inc.
  • Page 30 Spanning-Tree Protocols Feature Guide for EX9200 Switches user@switch1> show configuration interfaces { ge-0/0/13 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members [10 20 30 40]; ge-0/0/9 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members [10 20 30 40];...
  • Page 31 Enhanced Layer 2 Software (ELS) configuration style, you can configure spanning tree parameters globally on all spanning tree interfaces. See “Configuring RSTP (CLI Procedure)” on page 33 additional information. Copyright © 2017, Juniper Networks, Inc.
  • Page 32 Spanning-Tree Protocols Feature Guide for EX9200 Switches If Switch 2 includes dual Routing Engines, configure NSB. To quickly configure nonstop bridging on Switch 2, copy the following commands and paste them into the switch terminal window: set chassis redundancy graceful switchover...
  • Page 33 { members [10 20 30 40]; ge-0/0/18 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members [10 20 30 40]; protocols { layer2-control { nonstop-bridging; rstp { bridge-priority 32k; Copyright © 2017, Juniper Networks, Inc.
  • Page 34 Spanning-Tree Protocols Feature Guide for EX9200 Switches interface ge-0/0/14 { cost 1000; mode point-to-point; interface ge-0/0/18 { cost 1000; mode point-to-point; vlans { voice-vlan { vlan-id 10; employee-vlan { vlan-id 20; guest-vlan { vlan-id 30; camera-vlan { vlan-id 40; system { commit synchronize;...
  • Page 35 1000 user@switch3# rstp interface ge-0/0/26 mode point-to-point user@switch3# rstp interface ge-0/0/28 cost 1000 user@switch3# rstp interface ge-0/0/28 mode point-to-point user@switch3# rstp interface ge-0/0/24 cost 1000 user@switch3# rstp interface ge-0/0/24 mode point-to-point Copyright © 2017, Juniper Networks, Inc.
  • Page 36 Spanning-Tree Protocols Feature Guide for EX9200 Switches Step-by-Step If Switch 3 includes dual Routing Engines, configure nonstop bridging. To configure NSB Procedure on Switch 3: Enable graceful Routing Engine switchover (GRES): [edit chassis redundancy] user@switch3# set graceful-switchover Configure the switch to always synchronize configuration changes between the...
  • Page 37 { cost 1000; mode point-to-point; bridge-priority 8k; vlans { voice-vlan { vlan-id 10; employee-vlan { vlan-id 20; guest-vlan { vlan-id 30; camera-vlan { vlan-id 40; system { commit synchronize; chassis { redundancy { Copyright © 2017, Juniper Networks, Inc.
  • Page 38 Spanning-Tree Protocols Feature Guide for EX9200 Switches graceful-switchover; Configuring RSTP and Nonstop Bridging on Switch 4 CLI Quick To quickly configure RSTP and nonstop bridging on Switch 4, copy the following Configuration commands and paste them into the switch terminal window: [edit] set vlans voice-vlan description “Voice VLAN”...
  • Page 39 [edit protocols layer2-control] user@switch4# set nonstop-bridging NOTE: This process enables NSB for all NSB-supported Layer 2 protocols on the switch, including RSTP. Results Check the results of the configuration: user@switch4> show configuration interfaces { Copyright © 2017, Juniper Networks, Inc.
  • Page 40 Spanning-Tree Protocols Feature Guide for EX9200 Switches ge-0/0/23 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members [10 20 30 40]; ge-0/0/19 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members [10 20 30 40];...
  • Page 41 The other interfaces spanning-tree interface ge-0/0/13 on Switch 1 are blocking. Verifying RSTP Configuration on Switch 2 Purpose Use this procedure to verify the RSTP configuration on both Switch 2 Routing Engines. Copyright © 2017, Juniper Networks, Inc.
  • Page 42 Spanning-Tree Protocols Feature Guide for EX9200 Switches Action Use the operational mode command: user@switch2> show spanning-tree interface Spanning tree interface parameters for instance 0 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/14 128:527 128:527 32768.0019e2503d20...
  • Page 43: Forcing Rstp Or Vstp To Run As Ieee 802.1D Stp (Cli Procedure)

    VLAN Spanning Tree Protocol (VSTP), you can force the original IEEE 802.1D Spanning Tree Protocol (STP) version to run in place of RSTP or VSTP. Configure the force-version stp statement for compatibility with older bridges that do not support RSTP or VSTP. Copyright © 2017, Juniper Networks, Inc.
  • Page 44: Configuring Spanning Tree Protocols (J-Web Procedure)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches To force the spanning-tree protocol version to be the original IEEE 802.1D STP: Enable IEEE 802.1D STP: [edit protocols] user@switch# set (rstp | vstp) force-version NOTE: After using the force-version statement to enable xSTP globally, apply the force-version statement for specific Layer 2 ports.
  • Page 45: Table 5: Spanning-Tree Protocol Configuration Parameters

    Specifies the maximum-aging time in seconds for all Type a value. MST instances. The maximum aging time is the number of seconds a switch waits without receiving spanning-tree configuration messages before attempting a reconfiguration. Copyright © 2017, Juniper Networks, Inc.
  • Page 46 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 5: Spanning-Tree Protocol Configuration Parameters (continued) Field Function Your Action Max Hops (MSTP only) Specifies the number of hops in a region Type a value. before the BPDU is discarded. Configuration Name (MSTP only) Specifies the MSTP region name carried Type a name.
  • Page 47 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. Copyright © 2017, Juniper Networks, Inc.
  • Page 48 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 5: Spanning-Tree Protocol Configuration Parameters (continued) Field Function Your Action VLAN ID Specifies the VLAN for the MST instance. In the VLAN box, choose one of the following options: Click , select a VLAN from the list, and click...
  • Page 49: Configuring Rstp (Cli Procedure)

    To enable RSTP on all interfaces: [edit protocols] user@switch# set rstp interface all Related show spanning-tree bridge Documentation show spanning-tree interface Understanding RSTP for EX Series and QFX Series Switches on page 3 Copyright © 2017, Juniper Networks, Inc.
  • Page 50: Reverting To Rstp Or Vstp From Forced Ieee 802.1D Stp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Reverting to RSTP or VSTP from Forced IEEE 802.1D STP On MX Series routers and EX Series and QFX Series switches on which Rapid Spanning Tree Protocol (RSTP) or VLAN Spanning Tree Protocol (VSTP) has been forced to run as the original IEEE 802.1D Spanning Tree Protocol (STP) version, you can revert back...
  • Page 51: Configuration Statements For Rstp

    47 no-root-port on page 48 priority (Protocols STP) on page 49 protocols (STP Type) on page 50 revision-level on page 51 rstp on page 52 traceoptions (Spanning Tree) on page 54 Copyright © 2017, Juniper Networks, Inc.
  • Page 52: Cost

    Spanning-Tree Protocols Feature Guide for EX9200 Switches cost Syntax cost cost; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols mstp msti msti-id interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface...
  • Page 53: Disable (Spanning Trees)

    Related Configuring RSTP (CLI Procedure) on page 33 Documentation Configuring MSTP on page 108 Configuring MSTP on page 108 Configuring VLAN Spanning Tree Protocol on page 168 show spanning-tree bridge show spanning-tree interface Copyright © 2017, Juniper Networks, Inc.
  • Page 54: Disable-Timeout (Spanning Trees)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches disable-timeout (Spanning Trees) Syntax disable-timeout seconds; Hierarchy Level [edit protocols layer2-control bpdu-block] Release Information Statement introduced in Junos OS Release 9.1 for EX Series switches. Description For interfaces configured for BPDU protection, specify the amount of time an interface is disabled by BPDU blocking.
  • Page 55: Edge

    Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 56: Force-Version (Ieee 802.1D Stp)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches force-version (IEEE 802.1D STP) Syntax force-version stp; Hierarchy Level [edit logical-systems logical-system-name protocols (rstp | vstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (rstp | vstp)], [edit protocols (rstp | vstp)], [edit routing-instances routing-instance-name protocols (rstp | vstp)] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 57: Forward-Delay

    Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 58: Hello-Time

    Spanning-Tree Protocols Feature Guide for EX9200 Switches hello-time Syntax hello-time seconds; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp)], [edit logical-systems logical-system-name protocols vstp vlan vlan-id], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (mstp | rstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols...
  • Page 59: Interface (Bpdu Blocking)

    BPDU Protection for Individual Spanning-Tree Instance Interfaces Configuring BPDU Protection for Spanning-Tree Instance Interfaces show spanning-tree bridge show spanning-tree interface Understanding BPDU Protection for STP, RSTP, and MSTP on EX Series Switches on page 217 Copyright © 2017, Juniper Networks, Inc.
  • Page 60: Interface (Spanning Tree)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches interface (Spanning Tree) Syntax interface (interface-name disable | all){ bpdu-timeout-action alarm; block; cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; Hierarchy Level [edit protocols (mstp rstp | vstp)], [edit protocols vstp vlan vlan-id],...
  • Page 61: Max-Age

    Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 62: Max-Hops

    Spanning-Tree Protocols Feature Guide for EX9200 Switches max-hops Syntax max-hops hops; Hierarchy Level [edit logical-systems logical-system-name protocols mstp], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols mstp], [edit protocols mstp], [edit routing-instances routing-instance-name protocols mstp] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 63: Mode

    Spanning-Tree Instance Interface Point-to-Point Link Mode show spanning-tree bridge show spanning-tree interface Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Copyright © 2017, Juniper Networks, Inc.
  • Page 64: No-Root-Port

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 no-root-port Syntax no-root-port; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface...
  • Page 65: Priority (Protocols Stp)

    Level routing-control—To add this statement to the configuration. Related Spanning-Tree Instance Interface Documentation Configuring a Spanning-Tree Instance Interface as an Edge Port for Faster Convergence on page 8 Spanning-Tree Instance Interface Priority Copyright © 2017, Juniper Networks, Inc.
  • Page 66: Protocols (Stp Type)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches protocols (STP Type) Syntax protocols { mstp { ... } rstp { ... } vstp { ... } Hierarchy Level [edit], [edit logical-systems logical-system-name], [edit logical-systems logical-system-name routing-instances routing-instance-name], [edit routing-instances routing-instance-name] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 67: Revision-Level

    Configuring Multiple Spanning Tree Protocol Documentation show spanning-tree bridge show spanning-tree interface Example: Configuring Network Regions for VLANs with MSTP on page 81 Understanding MSTP for EX Series and QFX Series Switches on page 78 Copyright © 2017, Juniper Networks, Inc.
  • Page 68: Rstp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches rstp Syntax rstp { bpdu-block-on-edge; bpdu-destination-mac-address provider-bridge-group; bridge-priority priority; disable; extended-system-id; force-version stp; forward-delay seconds; hello-time seconds; interface (interface-name disable | interface-range-name | all ){ bpdu-timeout-action alarm; block; cost cost; edge; mode (p2p | shared);...
  • Page 69 Chapter 2: Configuration Statements for RSTP Related Configuring RSTP (CLI Procedure) on page 33 Documentation Copyright © 2017, Juniper Networks, Inc.
  • Page 70: Traceoptions (Spanning Tree)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches traceoptions (Spanning Tree) Syntax traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols...
  • Page 71 —Trace regular-expression parsing. regex-parse —Trace routing table changes. route state —Trace state transitions. —Trace protocol task processing. task —Trace protocol task timer processing. timer —(Optional) Prevent any user from reading the log file. no-world-readable Copyright © 2017, Juniper Networks, Inc.
  • Page 72 Spanning-Tree Protocols Feature Guide for EX9200 Switches —(Optional) Maximum size of each trace file, in kilobytes (KB) or megabytes size size (MB). When a trace file named reaches this size, it is renamed trace-file trace-file.0 When the trace-file again reaches its maximum size, trace-file.0...
  • Page 73: Rstp Monitoring Commands

    To display spanning-tree protocol parameter details in the CLI, enter the following commands: show spanning-tree interface show spanning-tree bridge Meaning Table 6 on page 57 summarizes the spanning-tree protocol parameters. Table 6: Summary of Spanning Tree Protocols Output Fields Field Values Bridge Parameters Copyright © 2017, Juniper Networks, Inc.
  • Page 74 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 6: Summary of Spanning Tree Protocols Output Fields (continued) Field Values Routing instance name Displays bridge information for the specified routing instance. NOTE: The option is supported only on EX4300 switches. Context ID An internally generated identifier.
  • Page 75 Total number of BPDUs received. Next BPDU Transmission Number of seconds until the next BPDU is scheduled to be sent. Related show spanning-tree interface Documentation show spanning-tree bridge Configuring Spanning Tree Protocols (J-Web Procedure) on page 28 Copyright © 2017, Juniper Networks, Inc.
  • Page 76: Clear Spanning-Tree Protocol-Migration

    Spanning-Tree Protocols Feature Guide for EX9200 Switches clear spanning-tree protocol-migration Syntax clear spanning-tree protocol-migration <interface interface-name> <routing-instance routing-instance-name> Release Information Command introduced in Junos OS Release 9.0. Description Revert from the original IEEE 802.1D Spanning Tree Protocol (STP) back to the Rapid...
  • Page 77: Clear Spanning-Tree Statistics

    QFabric systems. logical-system Required Privilege clear Level Related show spanning-tree statistics on page 73 Documentation List of Sample Output clear stp statistics on page 61 Sample Output clear stp statistics user@host> clear stp statistics Copyright © 2017, Juniper Networks, Inc.
  • Page 78: Show Spanning-Tree Bridge

    Spanning-Tree Protocols Feature Guide for EX9200 Switches show spanning-tree bridge List of Syntax Syntax on page 62 Syntax (QFX Series) on page 62 Syntax show spanning-tree bridge <brief | detail> <msti msti-id> <routing-instance routing-instance-name> <vlan-id vlan-id> Syntax (QFX Series) show spanning-tree bridge <brief | detail>...
  • Page 79: Table 7: Show Spanning-Tree Bridge Output Fields

    Locally configured bridge ID. The bridge ID consists of a configurable bridge priority and the MAC address of the bridge. System identifier. Extended system ID Bridge ID of the elected MSTP regional root bridge. MSTI regional root Copyright © 2017, Juniper Networks, Inc.
  • Page 80 Spanning-Tree Protocols Feature Guide for EX9200 Switches Sample Output show spanning-tree bridge routing-instance user@host> show spanning-tree bridge routing-instance vs1 detail STP bridge parameters Routing instance name : vs1 Enabled protocol : MSTP STP bridge parameters for CIST Root ID : 32768.00:13:c3:9e:c8:80...
  • Page 81 Maximum age : 20 seconds Forward delay : 15 seconds Message age Number of topology changes : 58 Time since last topology change : 14127 seconds Local parameters Bridge ID : 28672.00:90:69:0b:3f:d0 Extended system ID Copyright © 2017, Juniper Networks, Inc.
  • Page 82 Spanning-Tree Protocols Feature Guide for EX9200 Switches STP bridge parameters for bridge VLAN 10 Root ID : 28672.00:90:69:0b:3f:d0 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Message age Number of topology changes : 58...
  • Page 83: Show Spanning-Tree Interface

    (VSTP) on page 72 Output Fields Table 8 on page 68 lists the output fields for the command. show spanning-tree interface Output fields are listed in the approximate order in which they appear. Copyright © 2017, Juniper Networks, Inc.
  • Page 84: Table 8: Show Spanning-Tree Interface Output Fields

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 8: show spanning-tree Interface Output Fields Field Name Field Description Interface configured to participate in the STP, RSTP, VSTP, or MSTP Interface name instance. Port ID Logical interface identifier configured to participate in the MSTP or VSTP instance.
  • Page 85 32770.0090690b47d1 2000 DESG show spanning-tree interface detail user@host> show spanning-tree interface routing-instance vs1 detail Spanning tree interface parameters for instance 0 Interface name : ae1 Port identifier : 128.1 Designated port ID : 128.1 Copyright © 2017, Juniper Networks, Inc.
  • Page 86 Spanning-Tree Protocols Feature Guide for EX9200 Switches Port cost : 1000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/2 Port identifier : 128.2 Designated port ID : 128.2...
  • Page 87 128:1 32769.0090690b47d1 10000 ge-5/1/4 128:5 128:3 32769.0090690b47d1 20000 xe-7/2/0 128:6 128:6 32769.0090690b47d1 2000 ROOT show spanning-tree interface vlan-id user@host> show spanning-tree interface vlan-id 101 routing-instance vs1 detail Spanning tree interface parameters for instance 0 Copyright © 2017, Juniper Networks, Inc.
  • Page 88 Spanning-Tree Protocols Feature Guide for EX9200 Switches Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-11/0/5 128:1 128:1 32768.0090690b7fd1 20000 DESG ge-11/0/6 128:2 128:1 32768.0090690b7fd1 20000 BKUP ge-11/1/0 128:3 128:2 32768.0090690b4fd1 20000 ge-11/1/1 128:4 128:3 32768.0090690b4fd1...
  • Page 89: Show Spanning-Tree Statistics

    Type of message being counted. Message type Total number of BPDUs sent. BPDUs sent Total number of BPDUs received. BPDUs received Number of BPDUs sent within a specified interval. BPDUs sent in last interval Copyright © 2017, Juniper Networks, Inc.
  • Page 90 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 9: show spanning-tree statistics Output Fields (continued) Field Name Field Description Number of BPDUs received within a specified interval. BPDUs received in last interval Interface for which the statistics are being displayed.
  • Page 91: Mstp

    PART 2 MSTP Using MSTP on page 77 Configuration Statements for MSTP on page 111 MSTP Monitoring Commands on page 139 Copyright © 2017, Juniper Networks, Inc.
  • Page 92 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 93: Using Mstp

    Configuring a Spanning-Tree Instance Interface as an Edge Port for Faster Convergence on page 80 Example: Configuring Network Regions for VLANs with MSTP on page 81 Configuring Spanning Tree Protocols (J-Web Procedure) on page 103 Configuring MSTP on page 108 Copyright © 2017, Juniper Networks, Inc.
  • Page 94: Understanding Mstp For Ex Series And Qfx Series Switches

    Switches that forward frames through an STP spanning-tree are called designated bridges. Juniper Networks EX Series and QFX 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).
  • Page 95: Configuring Mstp Regions

    Voice and video work better with RSTP than they spanning-tree. This limits the number of forwarding do with STP. paths for data traffic. RSTP is backward compatible with STP; therefore, switches do not all have to run RSTP. Copyright © 2017, Juniper Networks, Inc.
  • Page 96: Convergence

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 10: Selecting a Spanning Tree Protocol (continued) Protocol Advantages Disadvantages Spanning Tree Protocol works with 802.1D 1998 STP is slower than RSTP. bridges. STP is not recommended for multiple VLAN RSTP is backward compatible with STP; therefore, networks because it is not VLAN-aware—as a result,...
  • Page 97: Example: Configuring Network Regions For Vlans With Mstp

    Up to 64 MSTIs can be created for an EX Series switch, and each MSTI can support up to 4094 VLANs. This example describes how to configure MSTP on four EX Series switches: Requirements on page 82 Overview and Topology on page 82 Configuring MSTP on Switch 1 on page 85 Copyright © 2017, Juniper Networks, Inc.
  • Page 98 Spanning-Tree Protocols Feature Guide for EX9200 Switches Configuring MSTP on Switch 2 on page 88 Configuring MSTP on Switch 3 on page 91 Configuring MSTP on Switch 4 on page 94 Verification on page 96 Requirements This example uses the following software and hardware components: Junos OS Release 13.2X50-D10 or later for EX Series switches...
  • Page 99: Figure 2: Network Topology For Mstp

    Switch 4 ge-0/0/13 is connected to Switch 3 ge-0/0/11 Switch 2 The following interfaces on Switch 2 are connected in this way: ge-0/0/14 is connected to Switch 1 is connected to Switch 3 ge-0/0/18 Copyright © 2017, Juniper Networks, Inc.
  • Page 100 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 11: Components of the Topology for Configuring MSTP on EX Series Switches (continued) Property Settings Switch 3 The following interfaces on Switch 3 are connected in this way: is connected to Switch 1...
  • Page 101 1 bridge-priority 16k set protocols mstp msti 1 vlan [10 20] set protocols mstp msti 1 interface ge-0/0/11 cost 1000 set protocols mstp msti 2 bridge-priority 8k set protocols mstp msti 2 vlan [30 40] Copyright © 2017, Juniper Networks, Inc.
  • Page 102 Spanning-Tree Protocols Feature Guide for EX9200 Switches Step-by-Step To configure interfaces and MSTP on Switch 1: Procedure NOTE: Starting with Junos OS Release 15.1 for EX Series and QFX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style, you can configure spanning tree parameters globally on all spanning tree interfaces.
  • Page 103 { members 10; members 20; members 30; members 40; protocols { mstp { configuration-name region1; bridge-priority 16k; interface ge-0/0/13 { cost 1000; mode point-to-point; interface ge-0/0/9 { cost 1000; mode point-to-point; Copyright © 2017, Juniper Networks, Inc.
  • Page 104 Spanning-Tree Protocols Feature Guide for EX9200 Switches interface ge-0/0/11 { cost 1000; mode point-to-point; msti 1 { bridge-priority 16k; vlan [ 10 20]; interface ge-0/0/11 { cost 1000; msti 2 { bridge-priority 8k; vlan [ 30 40 ]; vlans { voice-vlan { vlan-id 10;...
  • Page 105 2 bridge-priority 4k user@switch2# mstp msti 2 vlan [30 40] Results Check the results of the configuration: user@switch2> show configuration interfaces { ge-0/0/14 { unit 0 { family ethernet-switching { interface-mode trunk; Copyright © 2017, Juniper Networks, Inc.
  • Page 106 Spanning-Tree Protocols Feature Guide for EX9200 Switches vlan { members 10; members 20; members 30; members 40; ge-0/0/18 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members 10; members 20; members 30; members 40; protocols { mstp { configuration-name region1;...
  • Page 107 “Guest VLAN” user@switch3# set guest-vlan vlan-id 30 user@switch3# set camera-vlan description “Camera VLAN” user@switch3# set guest-vlan vlan-id 40 Configure the VLANs on the interfaces, including support for the Ethernet Switching protocol: [edit interfaces] Copyright © 2017, Juniper Networks, Inc.
  • Page 108 Spanning-Tree Protocols Feature Guide for EX9200 Switches user@switch3# set ge-0/0/26 unit 0 family ethernet-switching vlan members [10 20 30 user@switch3# set ge-0/0/28 unit 0 family ethernet-switching vlan members [10 20 30 user@switch3# set ge-0/0/24 unit 0 family ethernet-switching vlan members [10 20 30...
  • Page 109 1 { bridge-priority 4k; vlan [10 20]; msti 2 { bridge-priority 16k; vlan [30 40]; vlans { voice-vlan { vlan-id 10; employee-vlan { vlan-id 20; guest-vlan { vlan-id 30; camera-vlan { Copyright © 2017, Juniper Networks, Inc.
  • Page 110 Spanning-Tree Protocols Feature Guide for EX9200 Switches vlan-id 40; Configuring MSTP on Switch 4 CLI Quick To quickly configure interfaces and MSTP on Switch 4, copy the following commands Configuration and paste them into the switch terminal window: [edit] set vlans voice-vlan description “Voice VLAN”...
  • Page 111 20; members 30; members 40; ge-0/0/19 { unit 0 { family ethernet-switching { interface-mode trunk; vlan { members 10; members 20; members 30; members 40; protocols { mstp { configuration-name region1; bridge-priority 16k; Copyright © 2017, Juniper Networks, Inc.
  • Page 112 Spanning-Tree Protocols Feature Guide for EX9200 Switches interface ge-0/0/23 { cost 1000; mode point-to-point; interface ge-0/0/19 { cost 1000; mode point-to-point; msti 1 { bridge-priority 16k; vlan [10 20]; msti 2 { bridge-priority 32k; vlan [30 40]; vlans { voice-vlan { vlan-id 10;...
  • Page 113 STP bridge parameters for MSTI 2 MSTI regional root : 8194.4c:96:14:e9:f8:41 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Number of topology changes Local parameters Bridge ID : 8194.4c:96:14:e9:f8:41 Copyright © 2017, Juniper Networks, Inc.
  • Page 114 Spanning-Tree Protocols Feature Guide for EX9200 Switches Meaning The operational mode command displays spanning-tree show spanning-tree interface domain information such as the designated port and the port roles. The operational mode command show spanning-tree bridge displays the spanning-tree domain information at either the bridge level or the interface level. If the optional interface name is omitted, all interfaces in the spanning-tree domain are displayed.
  • Page 115 Designated Port State Role port ID bridge ID Cost ge-0/0/26 128:513 128:513 8192.0019e25051e0 1000 DESG ge-0/0/28 128:515 128:515 8192.0019e25051e0 1000 DESG ge-0/0/24 128:517 128:517 8192.0019e25051e0 1000 DESG Spanning tree interface parameters for instance 1 Copyright © 2017, Juniper Networks, Inc.
  • Page 116 Spanning-Tree Protocols Feature Guide for EX9200 Switches Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/26 128:513 128:513 4096.0019e25051e0 1000 DESG ge-0/0/28 128:515 128:515 4096.0019e25051e0 1000 DESG ge-0/0/24 128:517 128:517 4096.0019e25051e0 1000 DESG Spanning tree interface parameters for instance 2...
  • Page 117 : ge-0/0/23 CIST regional root : 8192.00:19:e2:50:51:e0 CIST internal root cost : 1000 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Hop count : 19 Message age Copyright © 2017, Juniper Networks, Inc.
  • Page 118 Spanning-Tree Protocols Feature Guide for EX9200 Switches Number of topology changes Time since last topology change : 887 seconds Local parameters Bridge ID : 16384.00:19:e2:50:40:e0 Extended system ID Internal instance ID STP bridge parameters for MSTI 1 MSTI regional root : 4096.00:19:e2:50:51:e0...
  • Page 119: Configuring Spanning Tree Protocols (J-Web Procedure)

    Table 5 on page Click to apply changes to the configuration or click to cancel without Cancel saving changes. —Modifies a selected spanning-tree protocol configuration. Edit Enter information as described in Table 5 on page Copyright © 2017, Juniper Networks, Inc.
  • Page 120: Table 12: Spanning-Tree Protocol Configuration Parameters

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Click to apply changes to the configuration or click to cancel without Cancel saving changes. —Deletes a selected spanning-tree protocol configuration. Delete Table 12: Spanning-Tree Protocol Configuration Parameters Field Function Your Action General...
  • Page 121 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. —For a half-duplex link, the default Shared link mode is shared. Copyright © 2017, Juniper Networks, Inc.
  • Page 122 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 12: Spanning-Tree Protocol Configuration Parameters (continued) Field Function Your Action BPDU Timeout Specifies the BPDU timeout action for the interface. Select one of the following options: Action Block NOTE: For EX4300 switches, you can select one...
  • Page 123 Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on page 219 Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Copyright © 2017, Juniper Networks, Inc.
  • Page 124: Configuring Mstp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Configuring MSTP You can configure the Multiple Spanning Tree Protocol (MSTP) under [edit protocols]. To configure the Multiple Spanning Tree Protocol: Enable MSTP as the version of spanning-tree protocol to be configured: [edit] user@switch@ edit ...
  • Page 125 Enable MSTP on all interfaces: [edit ... protocols mstp] user@switch# set interface all You can also enable BPDU root protection for all spanning-tree protocol instances on the interface. BPDU root protect ensures the port is the spanning-tree designated Copyright © 2017, Juniper Networks, Inc.
  • Page 126 Spanning-Tree Protocols Feature Guide for EX9200 Switches port. If the port receives superior BPDU packets, root protect moves this port to a root-prevented spanning-tree state. For configuration details, see Checking the Status of Spanning-Tree Instance Interfaces. Configure the bridge priority [edit ...
  • Page 127: Configuration Statements For Mstp

    129 priority (Protocols STP) on page 130 protocols (STP Type) on page 131 revision-level on page 132 traceoptions (Spanning Tree) on page 133 vlan (MSTP) on page 136 vlan-group on page 137 Copyright © 2017, Juniper Networks, Inc.
  • Page 128: Bridge-Priority (Spanning Trees)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches bridge-priority (Spanning Trees) Syntax bridge-priority priority; Hierarchy Level [edit protocols mstp], [edit protocols mstp msti msti-id], [edit protocols rstp], [edit protocols vstp vlan vlan-id] Release Information Statement introduced in Junos OS Release 9.0 for EX Series switches.
  • Page 129: Configuration-Name

    Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Copyright © 2017, Juniper Networks, Inc.
  • Page 130: Cost

    Spanning-Tree Protocols Feature Guide for EX9200 Switches cost Syntax cost cost; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols mstp msti msti-id interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface...
  • Page 131: Disable (Spanning Trees)

    Related Configuring RSTP (CLI Procedure) on page 33 Documentation Configuring MSTP on page 108 Configuring MSTP on page 108 Configuring VLAN Spanning Tree Protocol on page 168 show spanning-tree bridge show spanning-tree interface Copyright © 2017, Juniper Networks, Inc.
  • Page 132: Disable-Timeout (Spanning Trees)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches disable-timeout (Spanning Trees) Syntax disable-timeout seconds; Hierarchy Level [edit protocols layer2-control bpdu-block] Release Information Statement introduced in Junos OS Release 9.1 for EX Series switches. Description For interfaces configured for BPDU protection, specify the amount of time an interface is disabled by BPDU blocking.
  • Page 133: Edge

    Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 134: Force-Version (Ieee 802.1D Stp)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches force-version (IEEE 802.1D STP) Syntax force-version stp; Hierarchy Level [edit logical-systems logical-system-name protocols (rstp | vstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (rstp | vstp)], [edit protocols (rstp | vstp)], [edit routing-instances routing-instance-name protocols (rstp | vstp)] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 135: Forward-Delay

    Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 136: Hello-Time

    Spanning-Tree Protocols Feature Guide for EX9200 Switches hello-time Syntax hello-time seconds; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp)], [edit logical-systems logical-system-name protocols vstp vlan vlan-id], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (mstp | rstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols...
  • Page 137: Interface (Bpdu Blocking)

    BPDU Protection for Individual Spanning-Tree Instance Interfaces Configuring BPDU Protection for Spanning-Tree Instance Interfaces show spanning-tree bridge show spanning-tree interface Understanding BPDU Protection for STP, RSTP, and MSTP on EX Series Switches on page 217 Copyright © 2017, Juniper Networks, Inc.
  • Page 138: Interface (Spanning Tree)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches interface (Spanning Tree) Syntax interface (interface-name disable | all){ bpdu-timeout-action alarm; block; cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; Hierarchy Level [edit protocols (mstp rstp | vstp)], [edit protocols vstp vlan vlan-id],...
  • Page 139: Max-Age

    Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 140: Max-Hops

    Spanning-Tree Protocols Feature Guide for EX9200 Switches max-hops Syntax max-hops hops; Hierarchy Level [edit logical-systems logical-system-name protocols mstp], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols mstp], [edit protocols mstp], [edit routing-instances routing-instance-name protocols mstp] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 141: Mode

    Spanning-Tree Instance Interface Point-to-Point Link Mode show spanning-tree bridge show spanning-tree interface Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Copyright © 2017, Juniper Networks, Inc.
  • Page 142: Msti

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 msti Syntax msti msti-id { bridge-priority priority; vlan (vlan-id | vlan-range|open-set-of-values); interface (interface-name | all) { cost cost; edge; priority interface-priority;...
  • Page 143: Mstp

    (interface-name disable | all){ cost cost; edge; priority interface-priority; vlan (vlan-id | vlan-range | open-set-of-values); interface traceoptions file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; Hierarchy Level [edit protocols] Copyright © 2017, Juniper Networks, Inc.
  • Page 144 Spanning-Tree Protocols Feature Guide for EX9200 Switches Release Information Statement introduced in Junos OS Release 13.2X50-D10 for EX Series switches. Statement updated in Junos OS Release 15.1 for EX Series switches to support configuration of spanning tree parameters globally on all interfaces.
  • Page 145: No-Root-Port

    Level routing-control—To add this statement to the configuration. Related Understanding Root Protection for Spanning-Tree Instance Interfaces in a Layer 2 Switched Documentation Network Enabling Root Protection for a Spanning-Tree Instance Interface Copyright © 2017, Juniper Networks, Inc.
  • Page 146: Priority (Protocols Stp)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches priority (Protocols STP) Syntax priority interface-priority; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols mstp msti msti-id interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface...
  • Page 147: Protocols (Stp Type)

    Configuring VLAN Spanning Tree Protocol on page 168 Configuring Rapid Spanning Tree Protocol Configuring Multiple Spanning Tree Protocol Configuring VLAN Spanning Tree Protocol Understanding MSTP for EX Series and QFX Series Switches on page 78 Copyright © 2017, Juniper Networks, Inc.
  • Page 148: Revision-Level

    Spanning-Tree Protocols Feature Guide for EX9200 Switches revision-level Syntax revision-level revision-level; Hierarchy Level [edit logical-systems logical-system-name protocols mstp], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols mstp], [edit protocols mstp], [edit routing-instances routing-instance-name protocols mstp] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 149: Traceoptions (Spanning Tree)

    —Tracing operation to perform. To specify more than one tracing operation, include flag multiple statements. The following are the STP-specific tracing options: flag —Trace all operations. —Trace all failure conditions. all-failures —Trace BPDU reception and transmission. bpdu Copyright © 2017, Juniper Networks, Inc.
  • Page 150 Spanning-Tree Protocols Feature Guide for EX9200 Switches —Trace the bridge detection state machine. bridge-detection-state-machine —Trace events of the protocol state machine. events —Trace the port information state machine. port-information-state-machine port-migration-state-machine —Trace the port migration state machine. port-receive-state-machine —Trace the port receive state machine.
  • Page 151 —(Optional) Allow any user to read the log file. Required Privilege routing—To view this statement in the configuration. Level routing-control—To add this statement to the configuration. Related Spanning-Tree Protocol Trace Options Documentation Tracing Spanning-Tree Operations Example: Tracing Spanning-Tree Protocol Operations Copyright © 2017, Juniper Networks, Inc.
  • Page 152: Vlan (Mstp)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches vlan (MSTP) Syntax vlan vlan-id; Hierarchy Level [edit logical-systems logical-system-name protocols mstp msti msti-id], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols mstp msti msti-id], [edit protocols mstp msti msti-id], [edit routing-instances routing-instance-name protocols mstp msti msti-id] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 153: Vlan-Group

    Related vstp on page 194 Documentation show spanning-tree bridge show spanning-tree interface Configuring VLAN Spanning Tree Protocol on page 168 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 154 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 155: Chapter 6 Mstp Monitoring Commands

    To display spanning-tree protocol parameter details in the CLI, enter the following commands: show spanning-tree interface show spanning-tree bridge Meaning Table 6 on page 57 summarizes the spanning-tree protocol parameters. Table 13: Summary of Spanning Tree Protocols Output Fields Field Values Bridge Parameters Copyright © 2017, Juniper Networks, Inc.
  • Page 156 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 13: Summary of Spanning Tree Protocols Output Fields (continued) Field Values Routing instance name Displays bridge information for the specified routing instance. NOTE: The option is supported only on EX4300 switches. Context ID An internally generated identifier.
  • Page 157 Total number of BPDUs received. Next BPDU Transmission Number of seconds until the next BPDU is scheduled to be sent. Related show spanning-tree interface Documentation show spanning-tree bridge Configuring Spanning Tree Protocols (J-Web Procedure) on page 28 Copyright © 2017, Juniper Networks, Inc.
  • Page 158: Clear Spanning-Tree Protocol-Migration

    Spanning-Tree Protocols Feature Guide for EX9200 Switches clear spanning-tree protocol-migration Syntax clear spanning-tree protocol-migration <interface interface-name> <routing-instance routing-instance-name> Release Information Command introduced in Junos OS Release 9.0. Description Revert from the original IEEE 802.1D Spanning Tree Protocol (STP) back to the Rapid...
  • Page 159: Clear Spanning-Tree Statistics

    QFabric systems. logical-system Required Privilege clear Level Related show spanning-tree statistics on page 73 Documentation List of Sample Output clear stp statistics on page 143 Sample Output clear stp statistics user@host> clear stp statistics Copyright © 2017, Juniper Networks, Inc.
  • Page 160: Show Spanning-Tree Bridge

    Spanning-Tree Protocols Feature Guide for EX9200 Switches show spanning-tree bridge List of Syntax Syntax on page 144 Syntax (QFX Series) on page 144 Syntax show spanning-tree bridge <brief | detail> <msti msti-id> <routing-instance routing-instance-name> <vlan-id vlan-id> Syntax (QFX Series) show spanning-tree bridge <brief | detail>...
  • Page 161: Table 14: Show Spanning-Tree Bridge Output Fields

    Locally configured bridge ID. The bridge ID consists of a configurable bridge priority and the MAC address of the bridge. System identifier. Extended system ID Bridge ID of the elected MSTP regional root bridge. MSTI regional root Copyright © 2017, Juniper Networks, Inc.
  • Page 162 Spanning-Tree Protocols Feature Guide for EX9200 Switches Sample Output show spanning-tree bridge routing-instance user@host> show spanning-tree bridge routing-instance vs1 detail STP bridge parameters Routing instance name : vs1 Enabled protocol : MSTP STP bridge parameters for CIST Root ID : 32768.00:13:c3:9e:c8:80...
  • Page 163 Maximum age : 20 seconds Forward delay : 15 seconds Message age Number of topology changes : 58 Time since last topology change : 14127 seconds Local parameters Bridge ID : 28672.00:90:69:0b:3f:d0 Extended system ID Copyright © 2017, Juniper Networks, Inc.
  • Page 164 Spanning-Tree Protocols Feature Guide for EX9200 Switches STP bridge parameters for bridge VLAN 10 Root ID : 28672.00:90:69:0b:3f:d0 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Message age Number of topology changes : 58...
  • Page 165: Show Spanning-Tree Interface

    (VSTP) on page 154 Output Fields Table 8 on page 68 lists the output fields for the command. show spanning-tree interface Output fields are listed in the approximate order in which they appear. Copyright © 2017, Juniper Networks, Inc.
  • Page 166: Table 15: Show Spanning-Tree Interface Output Fields

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 15: show spanning-tree Interface Output Fields Field Name Field Description Interface configured to participate in the STP, RSTP, VSTP, or MSTP Interface name instance. Port ID Logical interface identifier configured to participate in the MSTP or VSTP instance.
  • Page 167 32770.0090690b47d1 2000 DESG show spanning-tree interface detail user@host> show spanning-tree interface routing-instance vs1 detail Spanning tree interface parameters for instance 0 Interface name : ae1 Port identifier : 128.1 Designated port ID : 128.1 Copyright © 2017, Juniper Networks, Inc.
  • Page 168 Spanning-Tree Protocols Feature Guide for EX9200 Switches Port cost : 1000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/2 Port identifier : 128.2 Designated port ID : 128.2...
  • Page 169 128:1 32769.0090690b47d1 10000 ge-5/1/4 128:5 128:3 32769.0090690b47d1 20000 xe-7/2/0 128:6 128:6 32769.0090690b47d1 2000 ROOT show spanning-tree interface vlan-id user@host> show spanning-tree interface vlan-id 101 routing-instance vs1 detail Spanning tree interface parameters for instance 0 Copyright © 2017, Juniper Networks, Inc.
  • Page 170 Spanning-Tree Protocols Feature Guide for EX9200 Switches Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-11/0/5 128:1 128:1 32768.0090690b7fd1 20000 DESG ge-11/0/6 128:2 128:1 32768.0090690b7fd1 20000 BKUP ge-11/1/0 128:3 128:2 32768.0090690b4fd1 20000 ge-11/1/1 128:4 128:3 32768.0090690b4fd1...
  • Page 171: Show Spanning-Tree Statistics

    Type of message being counted. Message type Total number of BPDUs sent. BPDUs sent Total number of BPDUs received. BPDUs received Number of BPDUs sent within a specified interval. BPDUs sent in last interval Copyright © 2017, Juniper Networks, Inc.
  • Page 172 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 16: show spanning-tree statistics Output Fields (continued) Field Name Field Description Number of BPDUs received within a specified interval. BPDUs received in last interval Interface for which the statistics are being displayed.
  • Page 173 PART 3 VSTP Using VSTP on page 159 Configuration Statements for VSTP on page 171 VSTP Monitoring Commands on page 197 Copyright © 2017, Juniper Networks, Inc.
  • Page 174 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 175: Using Vstp

    ELS. For ELS details, see Getting Started with Enhanced Layer 2 Software. For additional VLANs, use RSTP. On EX Series (except EX9200) and QFX Series switches running Junos OS that supports ELS—VSTP can support up to 510 VLANs. On EX9200 switches—VSTP can support up to 4000 VLANs.
  • Page 176: Selecting A Spanning-Tree Protocol

    Spanning-Tree Protocols Feature Guide for EX9200 Switches On an EX Series switch running Junos OS that does not support ELS—VSTP can support up to 253 VLANs. NOTE: When you configure VSTP, we recommend that you enable VSTP on all VLANs that can receive VSTP bridge protocol data units (BPDUs).
  • Page 177: Convergence

    If edge ports are configured at both the VSTP global and VLAN levels, the configuration at the VLAN level overrides the global configuration. Related Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations Documentation Configuring Rapid Spanning Tree Protocol Copyright © 2017, Juniper Networks, Inc.
  • Page 178: Rstp Or Vstp Forced To Run As Ieee 802.1D Stp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Configuring Multiple Spanning Tree Protocol Configuring VLAN Spanning Tree Protocol edge on page 39 interface (Spanning Tree) Configuring RSTP (CLI Procedure) on page 33 Configuring VLAN Spanning Tree Protocol on page 168 Configuring MSTP on page 108 RSTP or VSTP Forced to Run as IEEE 802.1D STP...
  • Page 179: Configuring Spanning Tree Protocols (J-Web Procedure)

    To commit all changes to the active configuration, select > . See Using Commit Options Commit the Commit Options to Commit Configuration Changes for details about all commit options. Copyright © 2017, Juniper Networks, Inc.
  • Page 180: Table 18: Spanning-Tree Protocol Configuration Parameters

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Click one of the following options: —Creates a spanning-tree protocol configuration. Select a protocol name. Enter information as described in Table 5 on page Click to apply changes to the configuration or click...
  • Page 181 To enable the option, select the check box. NOTE: This option is not supported on EX4300 switches. Edge Configures the interface as an edge interface. Edge To enable the option, select the check box. interfaces immediately transition to a forwarding state. Copyright © 2017, Juniper Networks, Inc.
  • Page 182 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 18: Spanning-Tree Protocol Configuration Parameters (continued) Field Function Your Action No Root Port Specifies an interface as a spanning-tree designated To enable the option, select the check box. port. If the bridge receives superior STP BPDUs on a...
  • Page 183 Example: Configuring BPDU Protection on Edge Interfaces to Prevent STP Miscalculations on page 219 Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Copyright © 2017, Juniper Networks, Inc.
  • Page 184: Configuring Vlan Spanning Tree Protocol

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Configuring VLAN Spanning Tree Protocol Juniper Networks EX Series Ethernet 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). The default factory configuration for EX Series switches uses RSTP.
  • Page 185 Disable a specific VSTP interface within a specific VLAN group: [edit] user@switch@ set protocols vstp vlan-group group group-name vlan (vlan-id |vlan-range | open-set-of-values) interface interface-name disable Related Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Documentation Copyright © 2017, Juniper Networks, Inc.
  • Page 186: Reverting To Rstp Or Vstp From Forced Ieee 802.1D Stp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Reverting to RSTP or VSTP from Forced IEEE 802.1D STP On MX Series routers and EX Series and QFX Series switches on which Rapid Spanning Tree Protocol (RSTP) or VLAN Spanning Tree Protocol (VSTP) has been forced to run as the original IEEE 802.1D Spanning Tree Protocol (STP) version, you can revert back...
  • Page 187: Chapter 8 Configuration Statements For Vstp

    (Protocols STP) on page 186 protocols (STP Type) on page 187 revision-level on page 188 traceoptions (Spanning Tree) on page 189 vlan (VSTP) on page 192 vlan-group on page 193 vstp on page 194 Copyright © 2017, Juniper Networks, Inc.
  • Page 188: Bridge-Priority (Spanning Trees)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches bridge-priority (Spanning Trees) Syntax bridge-priority priority; Hierarchy Level [edit protocols mstp], [edit protocols mstp msti msti-id], [edit protocols rstp], [edit protocols vstp vlan vlan-id] Release Information Statement introduced in Junos OS Release 9.0 for EX Series switches.
  • Page 189: Configuration-Name

    Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Copyright © 2017, Juniper Networks, Inc.
  • Page 190: Cost

    Spanning-Tree Protocols Feature Guide for EX9200 Switches cost Syntax cost cost; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols mstp msti msti-id interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface...
  • Page 191: Disable (Spanning Trees)

    Related Configuring RSTP (CLI Procedure) on page 33 Documentation Configuring MSTP on page 108 Configuring MSTP on page 108 Configuring VLAN Spanning Tree Protocol on page 168 show spanning-tree bridge show spanning-tree interface Copyright © 2017, Juniper Networks, Inc.
  • Page 192: Disable-Timeout (Spanning Trees)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches disable-timeout (Spanning Trees) Syntax disable-timeout seconds; Hierarchy Level [edit protocols layer2-control bpdu-block] Release Information Statement introduced in Junos OS Release 9.1 for EX Series switches. Description For interfaces configured for BPDU protection, specify the amount of time an interface is disabled by BPDU blocking.
  • Page 193: Edge

    Example: Configuring Network Regions for VLANs with MSTP on page 81 Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 194: Forward-Delay

    Spanning-Tree Protocols Feature Guide for EX9200 Switches forward-delay Syntax forward-delay seconds; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp)], [edit logical-systems logical-system-name protocols vstp vlan vlan-id], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (mstp | rstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols...
  • Page 195: Hello-Time

    Example: Configuring Faster Convergence and Improved Network Stability with RSTP on page 9 Understanding MSTP for EX Series and QFX Series Switches on page 78 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 196: Interface (Bpdu Blocking)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches interface (BPDU Blocking) Syntax interface interface-name; Hierarchy Level [edit protocols layer2-control bpdu-block] Release Information Statement introduced in Junos OS Release 9.4. Statement introduced in Junos OS Release 13.2X50-D10 for EX Series switches. Description Configure the interface to participate in BPDU blocking.
  • Page 197: Interface (Spanning Tree)

    Understanding RSTP for EX Series and QFX Series Switches on page 3 Understanding MSTP for EX Series and QFX Series Switches on page 78 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 198: Max-Age

    Spanning-Tree Protocols Feature Guide for EX9200 Switches max-age Syntax max-age seconds; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp)], [edit logical-systems logical-system-name protocols vstp vlan vlan-id], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (mstp | rstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols...
  • Page 199: Max-Hops

    Configuring MSTP on page 108 show spanning-tree bridge show spanning-tree interface Example: Configuring Network Regions for VLANs with MSTP on page 81 Understanding MSTP for EX Series and QFX Series Switches on page 78 Copyright © 2017, Juniper Networks, Inc.
  • Page 200: Mode

    Spanning-Tree Protocols Feature Guide for EX9200 Switches mode Syntax mode (p2p | shared); Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface interface-name], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols...
  • Page 201: No-Root-Port

    Level routing-control—To add this statement to the configuration. Related Understanding Root Protection for Spanning-Tree Instance Interfaces in a Layer 2 Switched Documentation Network Enabling Root Protection for a Spanning-Tree Instance Interface Copyright © 2017, Juniper Networks, Inc.
  • Page 202: Priority (Protocols Stp)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches priority (Protocols STP) Syntax priority interface-priority; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp) interface interface-name], [edit logical-systems logical-system-name protocols mstp msti msti-id interface interface-name], [edit logical-systems logical-system-name protocols vstp vlan vlan-id interface...
  • Page 203: Protocols (Stp Type)

    Configuring VLAN Spanning Tree Protocol on page 168 Configuring Rapid Spanning Tree Protocol Configuring Multiple Spanning Tree Protocol Configuring VLAN Spanning Tree Protocol Understanding MSTP for EX Series and QFX Series Switches on page 78 Copyright © 2017, Juniper Networks, Inc.
  • Page 204: Revision-Level

    Spanning-Tree Protocols Feature Guide for EX9200 Switches revision-level Syntax revision-level revision-level; Hierarchy Level [edit logical-systems logical-system-name protocols mstp], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols mstp], [edit protocols mstp], [edit routing-instances routing-instance-name protocols mstp] Release Information Statement introduced in Junos OS Release 8.4.
  • Page 205: Traceoptions (Spanning Tree)

    —Tracing operation to perform. To specify more than one tracing operation, include flag multiple statements. The following are the STP-specific tracing options: flag —Trace all operations. —Trace all failure conditions. all-failures —Trace BPDU reception and transmission. bpdu Copyright © 2017, Juniper Networks, Inc.
  • Page 206 Spanning-Tree Protocols Feature Guide for EX9200 Switches —Trace the bridge detection state machine. bridge-detection-state-machine —Trace events of the protocol state machine. events —Trace the port information state machine. port-information-state-machine port-migration-state-machine —Trace the port migration state machine. port-receive-state-machine —Trace the port receive state machine.
  • Page 207 —(Optional) Allow any user to read the log file. Required Privilege routing—To view this statement in the configuration. Level routing-control—To add this statement to the configuration. Related Spanning-Tree Protocol Trace Options Documentation Tracing Spanning-Tree Operations Example: Tracing Spanning-Tree Protocol Operations Copyright © 2017, Juniper Networks, Inc.
  • Page 208: Vlan (Vstp)

    Spanning-Tree Protocols Feature Guide for EX9200 Switches vlan (VSTP) Syntax vlan vlan-id { bridge-priority priority; forward-delay seconds; hello-time seconds; max-age seconds; interface interface-name { cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; Hierarchy Level [edit logical-systems logical-system-name protocols vstp],...
  • Page 209: Vlan-Group

    Related vstp on page 194 Documentation show spanning-tree bridge show spanning-tree interface Configuring VLAN Spanning Tree Protocol on page 168 Understanding VSTP for EX Series Switches and QFX Series Switches on page 159 Copyright © 2017, Juniper Networks, Inc.
  • Page 210: Vstp

    Spanning-Tree Protocols Feature Guide for EX9200 Switches vstp Syntax vstp { bpdu-block-on-edge; disable; force-version stp; interface (interface-name disable | interface-range-name | all ){ bpdu-timeout-action alarm; block; cost cost; edge; mode (p2p | shared); no-root-port; priority interface-priority; priority-hold-time seconds; vlan (vlan-id | all){ bridge-priority priority;...
  • Page 211 Configure VSTP parameters. Options The remaining statements are explained separately. See CLI Explorer Required Privilege routing—To view this statement in the configuration. Level routing-control—To add this statement to the configuration. Related Configuring VSTP (CLI Procedure) Documentation Copyright © 2017, Juniper Networks, Inc.
  • Page 212 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 213: Vstp Monitoring Commands

    To display spanning-tree protocol parameter details in the CLI, enter the following commands: show spanning-tree interface show spanning-tree bridge Meaning Table 6 on page 57 summarizes the spanning-tree protocol parameters. Table 19: Summary of Spanning Tree Protocols Output Fields Field Values Bridge Parameters Copyright © 2017, Juniper Networks, Inc.
  • Page 214 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 19: Summary of Spanning Tree Protocols Output Fields (continued) Field Values Routing instance name Displays bridge information for the specified routing instance. NOTE: The option is supported only on EX4300 switches. Context ID An internally generated identifier.
  • Page 215 Total number of BPDUs received. Next BPDU Transmission Number of seconds until the next BPDU is scheduled to be sent. Related show spanning-tree interface Documentation show spanning-tree bridge Configuring Spanning Tree Protocols (J-Web Procedure) on page 28 Copyright © 2017, Juniper Networks, Inc.
  • Page 216: Clear Spanning-Tree Protocol-Migration

    Spanning-Tree Protocols Feature Guide for EX9200 Switches clear spanning-tree protocol-migration Syntax clear spanning-tree protocol-migration <interface interface-name> <routing-instance routing-instance-name> Release Information Command introduced in Junos OS Release 9.0. Description Revert from the original IEEE 802.1D Spanning Tree Protocol (STP) back to the Rapid...
  • Page 217: Clear Spanning-Tree Statistics

    QFabric systems. logical-system Required Privilege clear Level Related show spanning-tree statistics on page 73 Documentation List of Sample Output clear stp statistics on page 201 Sample Output clear stp statistics user@host> clear stp statistics Copyright © 2017, Juniper Networks, Inc.
  • Page 218: Show Spanning-Tree Bridge

    Spanning-Tree Protocols Feature Guide for EX9200 Switches show spanning-tree bridge List of Syntax Syntax on page 202 Syntax (QFX Series) on page 202 Syntax show spanning-tree bridge <brief | detail> <msti msti-id> <routing-instance routing-instance-name> <vlan-id vlan-id> Syntax (QFX Series) show spanning-tree bridge <brief | detail>...
  • Page 219: Table 20: Show Spanning-Tree Bridge Output Fields

    Locally configured bridge ID. The bridge ID consists of a configurable bridge priority and the MAC address of the bridge. System identifier. Extended system ID Bridge ID of the elected MSTP regional root bridge. MSTI regional root Copyright © 2017, Juniper Networks, Inc.
  • Page 220 Spanning-Tree Protocols Feature Guide for EX9200 Switches Sample Output show spanning-tree bridge routing-instance user@host> show spanning-tree bridge routing-instance vs1 detail STP bridge parameters Routing instance name : vs1 Enabled protocol : MSTP STP bridge parameters for CIST Root ID : 32768.00:13:c3:9e:c8:80...
  • Page 221 Maximum age : 20 seconds Forward delay : 15 seconds Message age Number of topology changes : 58 Time since last topology change : 14127 seconds Local parameters Bridge ID : 28672.00:90:69:0b:3f:d0 Extended system ID Copyright © 2017, Juniper Networks, Inc.
  • Page 222 Spanning-Tree Protocols Feature Guide for EX9200 Switches STP bridge parameters for bridge VLAN 10 Root ID : 28672.00:90:69:0b:3f:d0 Hello time : 2 seconds Maximum age : 20 seconds Forward delay : 15 seconds Message age Number of topology changes : 58...
  • Page 223: Show Spanning-Tree Interface

    (VSTP) on page 212 Output Fields Table 8 on page 68 lists the output fields for the command. show spanning-tree interface Output fields are listed in the approximate order in which they appear. Copyright © 2017, Juniper Networks, Inc.
  • Page 224: Table 21: Show Spanning-Tree Interface Output Fields

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 21: show spanning-tree Interface Output Fields Field Name Field Description Interface configured to participate in the STP, RSTP, VSTP, or MSTP Interface name instance. Port ID Logical interface identifier configured to participate in the MSTP or VSTP instance.
  • Page 225 32770.0090690b47d1 2000 DESG show spanning-tree interface detail user@host> show spanning-tree interface routing-instance vs1 detail Spanning tree interface parameters for instance 0 Interface name : ae1 Port identifier : 128.1 Designated port ID : 128.1 Copyright © 2017, Juniper Networks, Inc.
  • Page 226 Spanning-Tree Protocols Feature Guide for EX9200 Switches Port cost : 1000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/2 Port identifier : 128.2 Designated port ID : 128.2...
  • Page 227 128:1 32769.0090690b47d1 10000 ge-5/1/4 128:5 128:3 32769.0090690b47d1 20000 xe-7/2/0 128:6 128:6 32769.0090690b47d1 2000 ROOT show spanning-tree interface vlan-id user@host> show spanning-tree interface vlan-id 101 routing-instance vs1 detail Spanning tree interface parameters for instance 0 Copyright © 2017, Juniper Networks, Inc.
  • Page 228 Spanning-Tree Protocols Feature Guide for EX9200 Switches Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-11/0/5 128:1 128:1 32768.0090690b7fd1 20000 DESG ge-11/0/6 128:2 128:1 32768.0090690b7fd1 20000 BKUP ge-11/1/0 128:3 128:2 32768.0090690b4fd1 20000 ge-11/1/1 128:4 128:3 32768.0090690b4fd1...
  • Page 229: Show Spanning-Tree Statistics

    Type of message being counted. Message type Total number of BPDUs sent. BPDUs sent Total number of BPDUs received. BPDUs received Number of BPDUs sent within a specified interval. BPDUs sent in last interval Copyright © 2017, Juniper Networks, Inc.
  • Page 230 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 22: show spanning-tree statistics Output Fields (continued) Field Name Field Description Number of BPDUs received within a specified interval. BPDUs received in last interval Interface for which the statistics are being displayed.
  • Page 231: Bpdu Protection, Root Protection, And Loop Protection

    Using BPDU Protection, Root Protection, and Loop Protection on page 217 Configuration Statements for BPDU Protection, Root Protection, and Loop Protection on page 245 BPDU Protection, Root Protection, and Loop Protection Monitoring Commands on page 249 Copyright © 2017, Juniper Networks, Inc.
  • Page 232 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 233: Using Bpdu Protection, Root Protection, And Loop Protection

    BPDUs and cause network outages. You need to protect any device that recognizes BPDUs from picking up incompatible BPDUs. Different Kinds of BPDUs on page 218 Protecting Switches from Incompatible BPDUs on page 218 Copyright © 2017, Juniper Networks, Inc.
  • Page 234: Different Kinds Of Bpdus

    To prevent a switch from forwarding BPDUs generated by spanning-tree protocols to a device, you can enable on an interface. bpdu-block On Juniper Networks EX Series Ethernet Switches that run Juniper Networks Junos operating system (Junos OS) that supports the Enhanced Layer 2 Software (ELS) configuration style, enable at the...
  • Page 235: Example: Configuring Bpdu Protection On Edge Interfaces To Prevent Stp Miscalculations

    Verification on page 222 Requirements This example uses the following software and hardware components: Two EX Series switches in an RSTP topology Junos OS Release 13.2X50-D10 or later or later for EX Series or QFX Series switches Copyright © 2017, Juniper Networks, Inc.
  • Page 236: Figure 3: Bpdu Protection Topology

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Before you configure the interfaces on Switch 2 for BPDU protection, be sure you have: RSTP enabled on the switches. NOTE: By default, RSTP is enabled on all EX Series switches. Overview and Topology The switches, being in an RSTP topology, support a loop-free network through the exchange of BPDUs.
  • Page 237 [edit protocols rstp] user@switch# set interface ge-0/0/5 edge user@switch# set interface ge-0/0/6 edge Configure BPDU protection on all edge ports on this switch: [edit protocols rstp] user@switch# set bpdu-block-on-edge Copyright © 2017, Juniper Networks, Inc.
  • Page 238 Spanning-Tree Protocols Feature Guide for EX9200 Switches Results Check the results of the configuration: user@switch> show configuration protocols rstp interface ge-0/0/5 { edge; interface ge-0/0/6 { edge; bpdu-block-on-edge; Verification To confirm that the configuration is working properly: Displaying the Interface State Before BPDU Protection Is Triggered on page 222...
  • Page 239 Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations on EX Series Switches Example: Configuring Loop Protection to Prevent Interfaces from Transitioning from Blocking to Forwarding in a Spanning Tree on EX Series Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 240: Example: Configuring Bpdu Protection On Interfaces To Prevent Stp Miscalculations On Ex Series Switches

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Example: Configuring Root Protection to Enforce Root Bridge Placement in Spanning Trees on EX Series Switches Understanding BPDU Protection for STP, RSTP, and MSTP on EX Series Switches on page 217 Example: Configuring BPDU Protection on Interfaces to Prevent STP Miscalculations...
  • Page 241 BPDU protection on interfaces. Doing so could prevent BPDUs being received on switch interfaces (such as a trunk interface) that you intended to have receive BPDUs from a switch with spanning trees. Copyright © 2017, Juniper Networks, Inc.
  • Page 242: Figure 4: Bpdu Protection Topology

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Figure 4: BPDU Protection Topology Table 24 on page 226 shows the components that will be configured for BPDU protection. Table 24: Components of the Topology for Configuring BPDU Protection on EX Series Switches...
  • Page 243 Verifying That BPDU Shutdown Protection Is Working Correctly on page 228 Displaying the Interface State Before BPDU Protection Is Triggered Purpose Before any BPDUs can be received on Switch 2 on either interface or interface ge-0/0/5 ge-0/0/6 , confirm the state of those interfaces. Copyright © 2017, Juniper Networks, Inc.
  • Page 244 Spanning-Tree Protocols Feature Guide for EX9200 Switches Action Use the operational mode command show interfaces extensive <interface name> user@switch> show interfaces extensive ge-0/0/5 Physical interface: ge-0/0/5, Enabled, Physical link is Down Interface index: 659, SNMP ifIndex: 639, Generation: 161 Link-level type: Ethernet, MTU: 1514, MRU: 0, Link-mode: Auto, Speed: Auto,...
  • Page 245 Blocking to Forwarding in a Spanning Tree on EX Series Switches Example: Configuring Root Protection to Enforce Root Bridge Placement in Spanning Trees on EX Series Switches Understanding BPDU Protection for STP, RSTP, and MSTP on EX Series Switches on page 217 Copyright © 2017, Juniper Networks, Inc.
  • Page 246: Configuring Bpdu Protection On Spanning Tree Interfaces

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Configuring BPDU Protection on Spanning Tree Interfaces NOTE: This topic applies to Junos OS for EX Series and QFX switches with support for the Enhanced Layer 2 Software (ELS) configuration style. For ELS details, see Getting Started with Enhanced Layer 2 Software.
  • Page 247: Unblocking An Interface That Receives Bpdus In Error (Cli Procedure)

    217 Understanding Loop Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches Juniper Networks EX Series Ethernet Switches provide Layer 2 loop prevention through Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), VLAN Spanning Tree Protocol (VSTP), and Multiple Spanning Tree Protocol (MSTP). Loop protection increases the efficiency of STP, RSTP, and MSTP by preventing ports from moving into a forwarding state that would result in a loop opening up in the network.
  • Page 248 Spanning-Tree Protocols Feature Guide for EX9200 Switches However, a blocking interface can transition to the forwarding state in error if the interface stops receiving BPDUs from its designated port on the segment. Such a transition error can occur when there is a hardware error on the switch or software configuration error between the switch and its neighbor.
  • Page 249: Understanding Root Protection For Stp, Rstp, Vstp, And Mstp On Ex Series Switches

    Chapter 10: Using BPDU Protection, Root Protection, and Loop Protection Understanding Root Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches Juniper Networks EX Series Ethernet Switches provide Layer 2 loop prevention through Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), VLAN Spanning Tree Protocol (VSTP), and Multiple Spanning Tree Protocol (MSTP).
  • Page 250: Example: Configuring Loop Protection To Prevent Interfaces From Transitioning From Blocking To Forwarding In A Spanning Tree On Ex Series Switches

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Example: Configuring Loop Protection to Prevent Interfaces from Transitioning from Blocking to Forwarding in a Spanning Tree on EX Series Switches NOTE: This example uses Junos OS for EX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style.
  • Page 251: Figure 5: Network Topology For Loop Protection

    Table 25: Components of the Topology for Configuring Loop Protection on EX Series Switches Property Settings Switch 1 Switch 1 is the root bridge. Copyright © 2017, Juniper Networks, Inc.
  • Page 252 Spanning-Tree Protocols Feature Guide for EX9200 Switches Table 25: Components of the Topology for Configuring Loop Protection on EX Series Switches (continued) Property Settings Switch 2 Switch 2 has the root port ge-0/0/7 Switch 3 Switch 3 is connected to Switch 1 through interface...
  • Page 253 Verify the loop protection configuration on interface ge-0/0/6 . RSTP has been disabled on interface on Switch 1. This will stop BPDUs from being sent to interface ge-0/0/4 and trigger loop protection on the interface. ge-0/0/6 Copyright © 2017, Juniper Networks, Inc.
  • Page 254: Example: Configuring Root Protection To Enforce Root Bridge Placement In Spanning Trees On Ex Series Switches

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Action Use the operational mode command: user@switch> show spanning-tree interface Spanning tree interface parameters for instance 0 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/0 128:513 128:513 32768.0019e2503f00...
  • Page 255 The interface is blocked only for instances for which it receives superior BPDUs. Otherwise, it participates in the spanning-tree topology. CAUTION: An interface can be configured for either root protection or loop protection, but not for both. Copyright © 2017, Juniper Networks, Inc.
  • Page 256: Figure 6: Network Topology For Root Protection

    Spanning-Tree Protocols Feature Guide for EX9200 Switches Four EX Series switches are displayed in Figure 6 on page 240. In this example, they are configured for RSTP and create a loop-free topology. Interface on Switch 1 is ge-0/0/7 a designated port on an administrative boundary. It connects to Switch 4. Switch 3 is the root bridge.
  • Page 257 Verification To confirm that the configuration is working properly: Displaying the Interface State Before Root Protection Is Triggered on page 242 Verifying That Root Protection Is Working on the Interface on page 242 Copyright © 2017, Juniper Networks, Inc.
  • Page 258 Spanning-Tree Protocols Feature Guide for EX9200 Switches Displaying the Interface State Before Root Protection Is Triggered Purpose Before root protection is triggered on interface , confirm the interface state. ge-0/0/7 Action Use the operational mode command: user@switch> show spanning-tree interface...
  • Page 259 Example: Configuring Loop Protection to Prevent Interfaces from Transitioning from Blocking to Forwarding in a Spanning Tree on EX Series Switches on page 234 Understanding Root Protection for STP, RSTP, VSTP, and MSTP on EX Series Switches on page 233 Copyright © 2017, Juniper Networks, Inc.
  • Page 260 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 261: Configuration Statements For Bpdu Protection, Root Protection, And Loop Protection

    BPDU Protection for Individual Spanning-Tree Instance Interfaces Configuring BPDU Protection for Spanning-Tree Instance Interfaces show spanning-tree bridge show spanning-tree interface Understanding BPDU Protection for STP, RSTP, and MSTP on EX Series Switches on page 217 Copyright © 2017, Juniper Networks, Inc.
  • Page 262: Bpdu-Block-On-Edge

    Spanning-Tree Protocols Feature Guide for EX9200 Switches bpdu-block-on-edge Syntax bpdu-block-on-edge; Hierarchy Level [edit logical-systems logical-system-name protocols (mstp | rstp | vstp)], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols (mstp | rstp | vstp)], [edit protocols ( mstp | rstp| vstp )],...
  • Page 263: Bpdu-Timeout-Action

    Understanding Loop Protection for Spanning-Tree Instance Interfaces Documentation Configuring Loop Protection for a Spanning-Tree Instance Interface Example: Enabling Loop Protection for Spanning-Tree Protocols rstp on page 52 mstp on page 127 vstp on page 194 Copyright © 2017, Juniper Networks, Inc.
  • Page 264 Spanning-Tree Protocols Feature Guide for EX9200 Switches Copyright © 2017, Juniper Networks, Inc.
  • Page 265: Bpdu Protection, Root Protection, And Loop Protection Monitoring

    CHAPTER 12 BPDU Protection, Root Protection, and Loop Protection Monitoring Commands clear error bpdu interface Copyright © 2017, Juniper Networks, Inc.
  • Page 266: Commands

    Spanning-Tree Protocols Feature Guide for EX9200 Switches clear error bpdu interface Syntax clear error bpdu interface (all | interface-name) Release Information Command introduced in Junos OS Release 9.4. Command introduced in Junos OS Release 13.2X50-D10 for EX Series switches. Command supports option in Junos OS Release 15.1 for EX Series switches.

Table of Contents