No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR500, AR510, and AR530 V200R007 CLI-based Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring transparent bridge, MAC table, link aggregation, VLANs, STP/RSTP/MSTP, and so on.The document provides the configuration procedures and configuration examples to illustrate the service configuration methods and application scenario.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring Basic RSTP Functions

Example for Configuring Basic RSTP Functions

Networking Requirements

On a complex network, multiple physical links are often deployed between two devices for link redundancy (one as the active link and the others as standby links). Redundant links may cause loops on the network, and loops will result in broadcast storms and damage MAC address entries.

RSTP can be deployed on a network to eliminate loops by blocking some ports. As shown in Figure 11-17, loops exist on the network, and RouterA, SwitchA, SwitchB, SwitchC and SwitchD are all running RSTP. These devices exchange BPDUs to discover the loops and block appropriate ports to trim the ring topology into a loop-free tree topology. The tree topology prevents infinite looping of packets on the network, which in turn helps improve packet processing performance.

Figure 11-17  Networking diagram of basic RSTP configurations

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure basic RSTP functions, including:
    1. Configure the RSTP mode for the switching devices on the ring network.

    2. Configure primary and secondary root bridges.

    3. Set a path cost for the ports to block certain ports.

    4. Enable RSTP to eliminate loops.
      • Enable RSTP globally.

      • Enable RSTP on all the ports except those connected to terminals.

      NOTE:

      RSTP is not required on the ports connected to terminals because these ports do not need to participate in RSTP calculation.

  2. Configure RSTP protection functions. For example, configure root protection on designated ports of the root bridge.

Procedure

  1. Configure basic RSTP functions.

    1. Configure the RSTP mode for the devices on the ring network.

      # Configure the RSTP mode on RouterA.

      <Huawei> system-view
      [Huawei] sysname RouterA
      [RouterA] stp mode rstp

      # Configure the RSTP mode on SwitchA, SwitchB, SwitchC and SwitchD.

    2. Configure primary and secondary root bridges.

      # Configure RouterA as the primary root bridge.

      [RouterA] stp root primary

      # Configure SwitchA as a second root bridge according to the configuration guide of SwitchA.

    3. Set a path cost for the port to be blocked.

      NOTE:
      • The path cost value range depends on path cost calculation methods. This example uses the Huawei proprietary calculation method and sets the path cost to 200000.

      • All switching devices on a network must use the same path cost calculation method. To use other path cost calculation methods, see the list of recommended value ranges for the specific path cost calculation method.

      # On RouterA, set the path cost calculation method to the Huawei proprietary method.

      [RouterA] stp pathcost-standard legacy

      # On SwitchA, SwitchB, SwitchC and SwitchD, set the path cost calculation method to the Huawei proprietary method according to the configuration guide of the switches.

      # Set the path cost of Eth0/0/4 on SwitchC and SwitchD to 200000. (The detailed configuration is not provided here.)

    4. Enable RSTP to eliminate loops.

      • Disable RSTP on the ports directly connected to PCs.

        # Disable RSTP on the ports of SwitchC and SwitchD connected to PCs.

      • Enable RSTP globally.

        # Enable RSTP globally on RouterA.

        [RouterA] stp enable

        # Enable RSTP globally on other switching devices.

      • Enable RSTP on all the ports except those connected to PCs.

        # Enable RSTP on RouterA Ethernet2/0/0 and Ethernet2/0/1.

        [RouterA] interface ethernet 2/0/0
        [RouterA-Ethernet2/0/0] stp enable
        [RouterA-Ethernet2/0/0] quit
        [RouterA] interface ethernet 2/0/1
        [RouterA-Ethernet2/0/1] stp enable
        [RouterA-Ethernet2/0/1] quit

        # Enable RSTP on all the ports except those connected to PCs on SwitchA, SwitchB, SwitchC and SwitchD.

  2. Configure RSTP protection.

    # Enable root protection on Eth2/0/0 and Eth2/0/1 of RouterA.

    [RouterA] interface ethernet 2/0/0
    [RouterA-Ethernet2/0/0] stp root-protection
    [RouterA-Ethernet2/0/0] quit
    [RouterA] interface ethernet 2/0/1
    [RouterA-Ethernet2/0/1] stp root-protection
    [RouterA-Ethernet2/0/1] quit

  3. Verify the configuration.

    # After the preceding configuration is complete and the network becomes stable, perform the following operation to verify the configuration:

    # Run the display stp brief command on RouterA to view the states and protection type on RSTP ports. The following information is displayed:

    [RouterA] display stp brief
     MSTID  Port                        Role  STP State     Protection
       0    Ethernet2/0/0               DESI  FORWARDING      ROOT
       0    Ethernet2/0/1               DESI  FORWARDING      ROOT

    # After RouterA is configured as the root bridge, Ethernet2/0/0 connected to SwitchA and Ethernet2/0/1 connected to SwitchB are elected as designated ports through spanning tree calculation.

Configuration Files

  • RouterA configuration file

    #
     sysname RouterA
    #
    stp mode rstp
    stp instance 0 root primary
    stp pathcost-standard legacy
    #
    interface Ethernet2/0/0
     stp root-protection
    #
    interface Ethernet2/0/1
     stp root-protection
    #
    return
  • SwitchA configuration file

    #
     sysname SwitchA
    #
    stp mode rstp
    stp instance 0 root secondary
    stp pathcost-standard legacy
    #
    interface Ethernet0/0/1
    #
    interface Ethernet0/0/2
    #
    interface Ethernet0/0/3
    #
    return
  • SwitchB configuration file

    #
     sysname SwitchB
    #
    stp mode rstp
    stp pathcost-standard legacy
    #
    interface Ethernet0/0/1
    #
    interface Ethernet0/0/2
    #
    interface Ethernet0/0/3
    #
    return
  • SwitchC configuration file

    #
     sysname SwitchC
    #
    stp mode rstp
    stp pathcost-standard legacy
    #
    interface Ethernet0/0/1
    #
    interface Ethernet0/0/2
     stp disable
    #
    interface Ethernet0/0/3
     stp disable
    #
    interface Ethernet0/0/4
     stp instance 0 cost 200000
    #
    return
  • SwitchD configuration file

    #
     sysname SwitchD
    #
    stp mode rstp
    stp pathcost-standard legacy
    #
    interface Ethernet0/0/1
    #
    interface Ethernet0/0/2
     stp disable
    #
    interface Ethernet0/0/3
     stp disable
    #
    interface Ethernet0/0/4
     stp instance 0 cost 200000
    #
    return
Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 11536

Downloads: 62

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next