Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Technical Documentation
 
CLI Explorer New
 
Content Explorer New
 
Documentation Help New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
Glossary
 
Portable Libraries
 
Home > Support > Technical Documentation > Junos OS > Configuring Rapid Spanning-Tree Protocol
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • MX Series
  • Spanning-Tree Protocols Supported on MX Series Routers
  • RSTP or VSTP Forced to Run as IEEE 802.1D STP
  • Reverting RSTP or VSTP Back From Forced IEEE 802.1D STP
  • Provider Bridge Participation in RSTP or MSTP Instances
  • System Identifier for Bridges in STP or RSTP Instances
 

Configuring Rapid Spanning-Tree Protocol

You can configure Rapid Spanning-Tree Protocol (RSTP) under the following hierarchy levels:

  • [edit logical-systems logical-system-name protocols]
  • [edit logical-systems logical-system-name routing-instances routing-instance-name protocols]
  • [edit protocols]
  • [edit routing-instances routing-instance-name protocols]

The routing instance type can be either virtual-switch or layer2-control.

To configure the Rapid Spanning-Tree Protocol:

  1. Enable RSTP as the version of spanning-tree protocol to be configured:
    [edit]
    user@host@ edit ... protocols rstp 
  2. (Optional) For compatibility with older bridges that do not support RSTP, you can run force RSTP to run as the original IEEE 802.1D Spanning-Tree Protocol (STP) version:

    [edit ... protocols rstp]user@host# set force-version stp

    Note: If RSTP has been forced to run as the original STP version, you can revert back to RSTP by first removing the force-version statement from the configuration and then entering the clear spanning-tree protocol-migration configuration mode command.

  3. (Optional) Enable provider bridge participation in the RSTP instance:
    [edit ... protocols rstp]
    user@host# set bpdu-destination-mac-address provider-bridge-group
  4. (Optional) Specify the extended system identifier used in identifiers bridges that participate in RSTP:
    [edit ... protocols rstp]
    user@host# set extended-system-id identifier
  5. Configure the interfaces that participate in the RSTP instance.

    1. Enable configuration of the interface:
      [edit ... protocols rstp]
      user@host# edit interface interface-name
    2. Configure the interface priority:
      [edit ... protocols rstp interface interface-name]
      user@host# set priority interface-priority
    3. (Optional) By default, the interface link cost is determined by the link speed. You can configure the interface link cost to control which bridge is the designated bridge and which port is the designated port:
      [edit ... protocols rstp interface interface-name]
      user@host# set cost interface-link-cost
    4. Configure the interface link mode to identify point-to-point links:
      [edit ... protocols rstp interface interface-name]
      user@host# set mode (p2p | shared)

      Specify p2p if the link is point to point. Specify shared is the link is a shared media.

    5. (Optional) Configure the interface as an edge port:
      [edit ... protocols rstp interface interface-name]
      user@host# set edge

      Edge ports do not expect to receive bridge protocol data unit (BPDU) packets. If a BPDU packet is received for an edge port, the port becomes a nonedge port

    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 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.
  6. Configure the bridge priority
    [edit ... protocols rstp]
    user@host# set bridge-priority bridge-priority

    For more information, see Bridge Priority for Election of Root Bridge and Designated Bridge.

  7. Configure hello BPDU timers.

    1. Configure the maximum expected arrival time of hello BPDUs:
      [edit ... protocols rstp]
      user@host# set max-age seconds
    2. Configure the time interval at which the root bridge transmits configuration BPDUs:
      [edit ... protocols rstp]
      user@host# set hello-time seconds
  8. (Optional) By default, the bridge port remains in the listening and learning states for 15 seconds before transitioning to the forwarding state. You can specify a delay from 4 through 20 seconds instead:
    [edit ... protocols rstp]
    user@host# set forward-delay seconds
  9. Verify the RSTP configuration:

    [edit]... { # Optional logical system and/or routing instanceprotocols {rstp {force-version stp; # Optional.bpdu-destination-mac-address provider-bridge-group; # Optionalextended-system-id identifier; # Optional.interface interface-name {priority interface-priority;cost interface-link-cost; # Optional.mode (p2p | shared);edge; # Optional.}bridge-priority bridge-priority;max-age seconds;hello-time seconds;forward-delay seconds; # Optional.}}}
 

Related Documentation

  • MX Series
  • Spanning-Tree Protocols Supported on MX Series Routers
  • RSTP or VSTP Forced to Run as IEEE 802.1D STP
  • Reverting RSTP or VSTP Back From Forced IEEE 802.1D STP
  • Provider Bridge Participation in RSTP or MSTP Instances
  • System Identifier for Bridges in STP or RSTP Instances
 

Published: 2011-11-01

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out