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

Fat AP and Cloud AP V200R008C00 CLI-based Configuration Guide

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).
Configuring STP/RSTP

Configuring STP/RSTP

This section describes the STP/RSTP configuration.

Configuring Basic STP/RSTP Functions

You can configure STP/RSTP on switches on an Ethernet to trim a network into a tree topology free from loops.

Configuring the STP/RSTP Mode

Context

The device supports three working modes: STP, RSTP, and MSTP. A switching device can select only the STP mode on a ring network running only STP, and can select only the RSTP mode on a ring network running only RSTP. In other scenarios, the MSTP mode is used by default.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp mode { stp | rstp }

    The working mode of the switching device is set to STP or RSTP.

    By default, the working mode of a switching device is MSTP. MSTP is compatible with STP and RSTP.

(Optional) Configuring the Root Bridge and Secondary Root Bridge

Context

The root bridge can be calculated through calculation. You can also manually configure the root bridge or secondary root bridge.
  • In a spanning tree, only one root bridge takes effect. When two or more devices are specified as root bridges of a spanning tree, the device with the smallest MAC address is used as the root bridge.
  • You can specify multiple secondary root bridges for each spanning tree. When the root bridge fails or is powered off, the secondary root bridge becomes the new root bridge. If a new root bridge is specified, the secondary root bridge will not become the root bridge. If multiple backup bridges are configured, the backup bridge with smallest MAC address will become the root bridge of the spanning tree.
NOTE:
It is recommended that the root bridge and secondary root bridge be configured manually.

Procedure

  • Perform the following operations on the device to be used as the root bridge.
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      stp root primary

      The device is configured as the root bridge.

      By default, a switching device does not function as the root bridge. After the configuration is complete, the BIDof the device is 0 and cannot be changed.

  • Perform the following operations on the device to be used as the secondary root bridge.
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      stp root secondary

      The device is configured as the secondary root bridge.

      By default, a switching device does not function as the secondary root bridge. After the configuration is complete, the BID of the device is 4096 and cannot be changed.

(Optional) Configuring Switching Device Priorities

Context

On an STP/RSTP-capable network, there is only one root bridge, which is the logic center of the entire spanning tree. During root bridge selection, a high-performance switching device at a high network layer should be selected as the root bridge; however, the priority of such a device may not be the highest on the network. It is therefore necessary to set a high priority for the switching device to ensure that the device functions as a root bridge.

Low-performance devices at lower network layers are not fit to serve as a root bridge. Therefore, set low priorities for these devices.

A smaller value of the priority indicates a higher priority of the switching device. The switching device with a higher priority is more likely to be elected as the root bridge. A larger value of the priority indicates a lower priority of the switching device. The switching device with a lower priority is less likely to be elected as the root bridge.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp priority  priority

    The priority of a switching device is configured.

    The default priority value of a switching device is 32768.

    NOTE:

    If the stp root primary or stp root secondary command has been executed to configure the device as the root bridge or secondary root bridge, to change the device priority, run the undo stp root command to disable the root bridge or secondary root bridge function and run the stp priority priority command to set a priority.

(Optional) Setting the Path Cost for a Port

Context

A path cost is used by STP/RSTP to select a link.

The path cost value range is determined by the calculation method. After the calculation method is determined, it is recommended that you set a relatively small path cost value for the ports with high link rates.

In the Huawei calculation method for example, the link rate determines the recommended value for the path cost. Table 7-30 lists the recommended path costs for ports with different link rates.
Table 7-30  Mappings between link rates and path cost values

Link Rate

Recommended Path Cost

Recommended Path Cost Range

Path Cost Range

10 Mbit/s

2000

200 to 20000

1 to 200000

100 Mbit/s

200

20 to 2000

1 to 200000

1 Gbit/s

20

2 to 200

1 to 200000

10 Gbit/s

2

2 to 20

1 to 200000

Over 10 Gbit/s

1

1 to 2

1 to 200000

If a network has loops, it is recommended that you set a relatively large path cost for ports with low link rates. STP/RSTP then blocks these ports.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. (Optional)Run:

    stp pathcost-standard { dot1d-1998 | dot1t | legacy }

    A path cost calculation method is configured.

    By default, the IEEE 802.1t standard (dot1t) is used to calculate the default path cost.

    All switching devices on a network must use the same path cost calculation method.

  3. Run:

    interface interface-type interface-number

    The view of the interface participating in STP calculation is displayed.

  4. Run:

    stp cost cost

    A path cost is set for the interface.

    • When the Huawei calculation method is used, cost ranges from 1 to 200000.
    • When the IEEE 802.1d standard method is used, cost ranges from 1 to 65535.
    • When the IEEE 802.1t standard method is used, cost ranges from 1 to 200000000.

(Optional) Configuring Port Priorities

Context

In spanning tree calculation, the priority of the switching device port affects designated port election.

To block one switching device port, set the port priority to be higher than the default value.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The view of the interface participating in STP calculation is displayed.

  3. Run:

    stp port priority priority

    The port priority is configured.

    The default priority value of a port on a switching device is 128.

Enabling STP/RSTP

Context

After STP/RSTP is enabled on a ring network, STP/RSTP immediately calculates spanning trees on the network. Configurations on the switching device, such as the switching device priority and port priority, will affect spanning tree calculation. Any change to the configurations may cause network flapping. Therefore, to ensure rapid and stable spanning tree calculation, perform basic configurations on the switching device and its ports, and enable STP/RSTP.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp enable

    STP/RSTP is enabled on the switching device.

    By default, STP/RSTP is disabled on a access point.

Follow-up Procedure

When the topology of a spanning tree changes, the forwarding paths to associated VLANs are changed. The ARP entries corresponding to those VLANs on the switching device need to be updated. STP/RSTP processes ARP entries in either fast or normal mode.

  • In fast mode, ARP entries to be updated are directly deleted.

  • In normal mode, ARP entries to be updated are rapidly aged.

    The remaining lifetime of ARP entries to be updated is set to 0. The switching device rapidly processes these aged entries. If the number of ARP aging probe attempts is not set to 0, ARP implements aging probe for these ARP entries.

You can run the stp converge { fast | normal } command in the system view to configure the STP/RSTP convergence mode.

By default, the normal STP/RSTP convergence mode is used.

NOTE:

The normal mode is recommended. If the fast mode is adopted, ARP entries will be frequently deleted, causing the CPU usage on the device to reach 100%. As a result, network flapping will frequently occur.

Checking the Configuration

Procedure

  • Run the display stp [ interface interface-type interface-number ] [ brief ] command to view the spanning-tree status and statistics.

Setting STP Parameters That Affect STP Convergence

STP cannot implement rapid convergence. However, you can set STP parameters including the network diameter, timeout interval, Hello timer value, Max Age timer value, and Forward Delay timer value.

Pre-configuration Tasks

Before setting STP parameters that affect STP convergence, complete the following task:

  • Configuring basic STP functions
Setting the STP Network Diameter

Context

On a switched network, any two terminals on the switching network are connected through a specific path along which multiple devices reside. The network diameter is the maximum number of devices between any two terminals. A larger network diameter indicates a larger network scale.

An improper network diameter may cause slow network convergence and affects communication. Run the stp bridge-diameter command to set a network diameter based on the network scale, which helps speed up convergence.

It is recommended that all devices use the same network diameter.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp bridge-diameter diameter

    The network diameter is configured.

    By default, the network diameter is 7.

    NOTE:
    • RSTP uses a single spanning tree instance on the entire network. As a result, performance deterioration cannot be prevented when the network scale grows. Therefore, the network diameter cannot be larger than 7.

    • It is recommended that you run the stp bridge-diameter diameter command to set the network diameter. Then, the switching device calculates the optimal Forward Delay period, Hello timer value, and Max Age timer value based on the set network diameter.

Setting the STP Timeout Interval

Context

If the device does not receive any BPDU from the upstream device in the set period, the device considers that the upstream device fails and then it re-calculates its spanning tree.

Sometimes, the device cannot receive the BPDU in a long time from the upstream device because the upstream device is very busy. In this case, the device should not re-calculate its spanning tree. Therefore, you can set a long period for the device on a stable network to avoid waste of network resources.

If the local switching device does not receive a BPDU from the upstream switching device within the timeout interval, spanning tree recalculation is performed. The timeout interval is calculated as follows:
  • Timeout interval = Hello time x 3 x Timer Factor

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp timer-factor factor

    The timeout period for waiting for BPDUs from the upstream device is set.

    By default, the timeout period is 9 times the Hello timer value.

Setting the Values of STP Timers

Context

The following parameters are used in spanning tree calculation:
  • Forward Delay: determines the interval for port status transition. To prevent temporary loops, an interface first enters the Learning state when transiting from Discarding to Forwarding. The status transition lasts for the time specified by Forward Delay so that the local device can synchronize the status with the remote switch.
  • Hello Time: is the interval at which hello packets are sent. The switching device sends configuration BPDUs at an interval of Hello Time to check whether links are faulty. If the switching device does not receive any BPDU at an interval of Hello Time, the switching device recalculates the spanning tree due to BPDU timeout.
  • Max Age: determines whether BPDUs expire. The switching device determines whether the received BPDU expires based on this value. If the received BPDU expires, the spanning tree needs to be recalculated.

Devices on a ring network must use the same values of Forward Delay, Hello Time, and Max Age.

Generally, you are not advised to directly adjust the preceding three parameters. This is because the three parameters are relevant to the network scale. It is recommended that the network diameter be adjusted so that the spanning tree protocol automatically adjusts the three parameters. When the default network diameter is used, the default values of the three parameters are used.

To prevent frequent network flapping, make sure that Hello Time, Forward Delay, and Max Age conform to the following formulas:

  • 2 x (Forward Delay - 1.0 second) >= Max Age

  • Max Age >= 2 x (Hello Time + 1.0 second)

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Set Forward Delay, Hello Time, and Max Age.
    1. Run:

      stp timer forward-delay forward-delay

      The value of Forward Delay of the switching device is set.

      By default, the value of Forward Delay of the switching device is 1500 centiseconds.

    2. Run:

      stp timer hello hello-time

      The value of Hello Time of the switching device is set.

      By default, the value of Hello Time of the switching device is 200 centiseconds.

    3. Run:

      stp timer max-age max-age

      The value of Max Age of the switching device is set.

      By default, the value of Max Age of the switching device is 2000 centiseconds.

Setting the Maximum Number of Connections That Affect Spanning Tree Calculation

Context

The interface path cost affects spanning tree calculation. When the path cost changes, the system performs spanning tree recalculation. The interface path cost is affected by the bandwidth, so you can change the interface bandwidth to affect spanning tree calculation.

As shown in Figure 7-40, deviceA and deviceB are connected through two Eth-Trunks. Eth-Trunk 1 has three member interfaces in Up state and Eth-Trunk 2 has two member interfaces in Up state. If each member link has the same bandwidth, deviceA is selected as the root bridge.
  • Eth-Trunk 1 has larger bandwidth than Eth-Trunk 2. After STP calculation, Eth-Trunk 1 on deviceB is selected as the root port and Eth-Trunk 2 is selected as the alternate port.
  • If the maximum number of connections is 1 in Eth-Trunk 1, the path cost of Eth-Trunk 1 is larger than the path cost of Eth-Trunk 2. The system performs spanning tree recalculation. Then Eth-Trunk 1 on deviceB becomes the alternate port and Eth-Trunk 2 becomes the root port.
Figure 7-40  Setting the maximum number of connections
NOTE:

The maximum number of connections affects only the path cost of an interface where spanning tree calculation is performed, but does not affect the actual link bandwidth. The actual bandwidth for an Eth-Trunk to forward traffic depends on the number of active interfaces.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.

  3. Run:

    max bandwidth-affected-linknumber link-number

    The maximum number of connections is set.

    By default, the upper threshold for the number of interfaces that determine the bandwidth of an Eth-Trunk is 8.

Checking the Configuration

Procedure

  • Run the display stp [ interface interface-type interface-number ] [ brief ] command to view the spanning-tree status and statistics.

Setting RSTP Parameters That Affect RSTP Convergence

RSTP implements rapid convergence by configuring the link type of a port and fast transition mechanism.

Pre-configuration Tasks

Before configuring RSTP parameters that affect RSTP convergence, configure basic RSTP functions.

Setting the RSTP Network Diameter

Context

On a switched network, any two terminals on the switching network are connected through a specific path along which multiple devices reside. The network diameter is the maximum number of devices between any two terminals. A larger network diameter indicates a larger network scale.

An improper network diameter may cause slow network convergence and affects communication. Run the stp bridge-diameter command to set a network diameter based on the network scale, which helps speed up convergence.

It is recommended that all devices use the same network diameter.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp bridge-diameter diameter

    The network diameter is configured.

    By default, the network diameter is 7.

    NOTE:
    • RSTP uses a single spanning tree instance on the entire network. As a result, performance deterioration cannot be prevented when the network scale grows. Therefore, the network diameter cannot be larger than 7.

    • It is recommended that you run the stp bridge-diameter diameter command to set the network diameter. Then, the switching device calculates the optimal Forward Delay period, Hello timer value, and Max Age timer value based on the set network diameter.

Setting the RSTP Timeout Interval

Context

If the device does not receive any BPDU from the upstream device in the set period, the device considers that the upstream device fails and then it re-calculates its spanning tree.

Sometimes, the device cannot receive the BPDU in a long time from the upstream device because the upstream device is very busy. In this case, the device should not re-calculate its spanning tree. Therefore, you can set a long period for the device on a stable network to avoid waste of network resources.

If the local switching device does not receive a BPDU from the upstream switching device within the timeout interval, spanning tree recalculation is performed. The timeout interval is calculated as follows:
  • Timeout interval = Hello time x 3 x Timer Factor

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp timer-factor factor

    The timeout period for waiting for BPDUs from the upstream device is set.

    By default, the timeout period is 9 times the Hello timer value.

Setting RSTP Timers

Context

The following parameters are used in spanning tree calculation:
  • Forward Delay: determines the interval for port status transition. To prevent temporary loops, an interface first enters the Learning state when transiting from Discarding to Forwarding. The status transition lasts for the time specified by Forward Delay so that the local device can synchronize the status with the remote switch.
  • Hello Time: is the interval at which hello packets are sent. The switching device sends configuration BPDUs at an interval of Hello Time to check whether links are faulty. If the switching device does not receive any BPDU at an interval of Hello Time, the switching device recalculates the spanning tree due to BPDU timeout.
  • Max Age: determines whether BPDUs expire. The switching device determines whether the received BPDU expires based on this value. If the received BPDU expires, the spanning tree needs to be recalculated.

Devices on a ring network must use the same values of Forward Delay, Hello Time, and Max Age.

Generally, you are not advised to directly adjust the preceding three parameters. This is because the three parameters are relevant to the network scale. It is recommended that the network diameter be adjusted so that the spanning tree protocol automatically adjusts the three parameters. When the default network diameter is used, the default values of the three parameters are used.

To prevent frequent network flapping, make sure that Hello Time, Forward Delay, and Max Age conform to the following formulas:

  • 2 x (Forward Delay - 1.0 second) >= Max Age

  • Max Age >= 2 x (Hello Time + 1.0 second)

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Set Forward Delay, Hello Time, and Max Age.
    1. Run:

      stp timer forward-delay forward-delay

      The value of Forward Delay of the switching device is set.

      By default, the value of Forward Delay of the switching device is 1500 centiseconds.

    2. Run:

      stp timer hello hello-time

      The value of Hello Time of the switching device is set.

      By default, the value of Hello Time of the switching device is 200 centiseconds.

    3. Run:

      stp timer max-age max-age

      The value of Max Age of the switching device is set.

      By default, the value of Max Age of the switching device is 2000 centiseconds.

Setting the Maximum Number of Connections That Affect Spanning Tree Calculation

Context

The interface path cost affects spanning tree calculation. When the path cost changes, the system performs spanning tree recalculation. The interface path cost is affected by the bandwidth, so you can change the interface bandwidth to affect spanning tree calculation.

As shown in Figure 7-41, deviceA and deviceB are connected through two Eth-Trunks. Eth-Trunk 1 has three member interfaces in Up state and Eth-Trunk 2 has two member interfaces in Up state. If each member link has the same bandwidth, deviceA is selected as the root bridge.
  • Eth-Trunk 1 has larger bandwidth than Eth-Trunk 2. After STP calculation, Eth-Trunk 1 on deviceB is selected as the root port and Eth-Trunk 2 is selected as the alternate port.
  • If the maximum number of connections is 1 in Eth-Trunk 1, the path cost of Eth-Trunk 1 is larger than the path cost of Eth-Trunk 2. The system performs spanning tree recalculation. Then Eth-Trunk 1 on deviceB becomes the alternate port and Eth-Trunk 2 becomes the root port.
Figure 7-41  Setting the maximum number of connections
NOTE:

The maximum number of connections affects only the path cost of an interface where spanning tree calculation is performed, but does not affect the actual link bandwidth. The actual bandwidth for an Eth-Trunk to forward traffic depends on the number of active interfaces.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.

  3. Run:

    max bandwidth-affected-linknumber link-number

    The maximum number of connections is set.

    By default, the upper threshold for the number of interfaces that determine the bandwidth of an Eth-Trunk is 8.

Setting the Link Type of a Port

Context

It is easy to implement rapid convergence on a P2P link. If the two ports connected to a P2P link are root or designated ports, the ports can transit to the forwarding state quickly by sending Proposal and Agreement packets. This reduces the forwarding delay.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The view of the Ethernet interface participating in STP calculation is displayed.

  3. Run:

    stp point-to-point { auto | force-false | force-true }

    The link type is configured for the interface.

    By default, an interface automatically determines whether to connect to a P2P link. The P2P link supports rapid network convergence.

    • If the Ethernet port works in full-duplex mode, the port is connected to a P2P link. In this case, force-true can be configured to implement rapid network convergence.

    • If the Ethernet port works in half-duplex mode, you can run stp point-to-point force-true to forcibly set the link type to P2P.

Setting the Maximum Transmission Rate of an Interface

Context

A larger value of packet-number indicates more BPDUs sent in a hello interval and therefore more system resources occupied. Setting the proper value of packet-number prevents excess bandwidth usage when route flapping occurs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The view of the Ethernet interface participating in STP calculation is displayed.

  3. Run:

    stp transmit-limit packet-number

    The maximum number of BPDUs sent by a port in a specified period is set.

    By default, the maximum number of BPDUs that a port sends is 6 per second.

    NOTE:

    If the maximum number of BPDUs sent per second needs to be configured for all interfaces of the device, run the stp transmit-limit (system view) command in the global view.

Switching to the RSTP mode

Context

If an interface on an RSTP-enabled device is connected to an STP-enabled device, the interface switches to the STP compatible mode.

If the STP-enabled device is powered off or disconnected from the RSTP-enabled device, the interface cannot switch to the RSTP mode. In this case, you can switch the interface to the RSTP mode by using the stp mcheck command.

In the following cases, you need to manually switch the interface to the RSTP mode:

  • The STP-enabled device is shut down or disconnected.

  • The STP-enabled device is switched to the RSTP mode.

Procedure

  • Switching to the RSTP mode in the interface view
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      interface interface-type interface-number

      The view of the Ethernet interface that participates in spanning tree calculation is displayed.

    3. Run:

      stp mcheck

      The device is switched to the RSTP mode.

  • Switching to the RSTP mode in the system view
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      stp mcheck

      The device is switched to the RSTP mode.

Configuring a Port as an Edge Port and BPDU Filter Port

Context

If a designated port is located at the edge of a network and is directly connected to terminal devices, this port is called edge port.

An edge port does not receive or process configuration BPDUs, or RSTP calculation. It can transit from Disable to Forwarding without any delay.

After a designated port is configured as an edge port, the port can still send BPDUs. Then BPDUs are sent to other networks, causing flapping of other networks. You can configure a port as an edge port and BPDU filter port so that the port does not process or send BPDUs.

After all ports are configured as edge ports and BPDU filter ports in the system view, none of ports on the device send BPDUs or negotiate the STP status with directly connected ports on the peer device. All ports are in forwarding state. This may cause loops on the network, leading to broadcast storms. Exercise caution when you configure a port as an edge port and BPDU filter port.

After a port is configured as an edge port and BPDU filter port in the interface view, the port does not process or send BPDUs. The port cannot negotiate the STP status with the directly connected port on the peer device. Exercise caution when you configure a port as an edge port and BPDU filter port.

Procedure

  • Configuring all ports as edge ports and BPDU filter ports in the system view
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      stp edged-port default

      All ports are configured as edge ports.

      By default, all ports are non-edge ports.

    3. Run:

      stp bpdu-filter default

      All ports are configured as BPDU filter ports.

      By default, all ports are non-BPDU filter ports.

  • Configuring an edge port and BPDU filtering in the interface view
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      interface interface-type interface-number

      The view of the Ethernet interface that participates in spanning tree calculation is displayed.

    3. Run:

      stp edged-port enable

      The port is configured as an edge port.

      By default, all ports are non-edge ports.

    4. Run:

      stp bpdu-filter enable

      The port is configured as a BPDU filter port.

      By default, a port is a non-BPDU filter port.

Checking the Configuration

Procedure

  • Run the display stp [ interface interface-type interface-number ] [ brief ] command to view the spanning-tree status and statistics.

Configuring RSTP Protection Functions

Huawei datacom devices provide the following RSTP protection functions. You can configure one or more functions.

Configuring BPDU Protection on a Switching Device

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp bpdu-protection

    BPDU protection is enabled on the switching device.

    By default, BPDU protection is disabled on the switching device.

Configuring TC Protection on a Switching Device

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    stp tc-protection

    TC protection is enabled for a switching device.

    By default, TC protection is not enabled on the switching device.

  3. Run:

    stp tc-protection threshold threshold

    The maximum number of times the switching device processes received TC BPDUs and updates forwarding entries within a given time is set.

    NOTE:

    The time is set using the stp tc-protection interval command.

Configuring Root Protection on a Port

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The view of the interface participating in STP calculation is displayed.

  3. Run:

    stp root-protection

    Root protection is enabled on the interface.

    By default, root protection is disabled.

    NOTE:

    Root protection takes effect only on designated ports.

    Root protection and loop protection cannot be configured on a port simultaneously.

Configuring Loop Protection on a Port

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    stp loop-protection

    Loop protection for the root port or the alternate port is configured on the switching device.

    By default, loop protection is disabled.

    NOTE:

    An alternate port is a backup port for a root port. If a switching device has an alternate port, you need to configure loop protection on both the root port and the alternate port.

    Root protection and loop protection cannot be configured on a port simultaneously.

Checking the Configuration

Procedure

  • Run the display stp [ interface interface-type interface-number ] [ brief ] command to view the spanning-tree status and statistics.

Setting Parameters for Interworking Between the Access Point and a Non-Huawei Device

To implement interworking between the Access Point and a non-Huawei device, select the fast transition mode based on the Proposal/Agreement mechanism of the non-Huawei device.

Context

The switching device supports the following modes:

  • Enhanced mode: The current interface counts a root port when it calculates the synchronization flag bit.
    1. An upstream device sends a Proposal message to a downstream device requesting fast status transition. After receiving the message, the downstream device sets the port connected to the upstream device as the root port and blocks all non-edge ports.

    2. The upstream device then sends an Agreement message to the downstream device. After the downstream device receives the message, the root port transitions to the Forwarding state.

    3. The downstream device then responds with an Agreement message. After receiving the message, the upstream device sets the port connected to the downstream device as the designated port, and then the status of the designated port changes to Forwarding.

  • Common mode: The current interface ignores the root port when it calculates the synchronization flag bit.
    1. An upstream device sends a Proposal message to a downstream device requesting fast transition. After receiving the message, the downstream device sets the port connected to the upstream device as the root port and blocks all non-edge ports. Then, the status of the root port changes to Forwarding.

    2. The downstream device then responds with an Agreement message. After receiving the message, the upstream device sets the port connected to the downstream device as the designated port, and then the status of the designated port changes to Forwarding.

On a network running STP, if the Access Point to a non-Huawei device that uses a different Proposal/Agreement mechanism, the Access Point may fail to communicate with the non-Huawei device. Select the enhanced mode or common mode based on the Proposal/Agreement mechanism of the non-Huawei device.

Pre-configuration Tasks

Before setting parameters for interworking between the Access Point and a non-Huawei device, complete the following task:

  • Configuring basic STP/RSTP functions

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The view of the Ethernet interface that participates in STP calculation is displayed.

  3. Run:

    stp no-agreement-check

    The fast transition mechanism in common mode is used.

    By default, the fast transition mechanism in enhanced mode is configured on a port.

Translation
Download
Updated: 2019-01-11

Document ID: EDOC1000176006

Views: 118072

Downloads: 309

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