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 V200R010C00 Command Reference

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).
stp enable

stp enable

Function

The stp enable command enables STP/RSTP/MSTP on a switching device or an interface.

The undo stp enable command disables STP/RSTP/MSTP on a switching device or an interface.

The stp disable command disables STP/RSTP/MSTP on a switching device or an interface.

The undo stp disable command enables STP/RSTP/MSTP on a switching device or an interface.

By default, STP/RSTP/MSTP is disabled globally and enabled on an interface.

Format

stp enable

undo stp enable

stp disable

undo stp disable

Parameters

None

Views

System view, GE interface view, Eth-Trunk interface view, XGE interface view, MultiGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a complex Layer 2 network, to prevent loops or break loops, STP/RSTP/MSTP can be configured on switching devices.

Running the stp enable command enables STP/RSTP/MSTP. The devices running STP/RSTP/MSTP discover loops on the network by exchanging information with each other and trim the ring topology into a loop-free tree topology by blocking a certain interface. In this manner, replication and circular propagation of packets are prevented on the network. In addition, the processing performance of devices is prevented from deteriorating.

Enabling STP/RSTP/MSTP consumes system resources so that you can run the stp disable command to disable STP/RSTP/MSTP on devices or interfaces that do not participate in the spanning tree calculation.

Pre-configuration Tasks

After STP/RSTP/MSTP is enabled on a ring network, STP/RSTP/MSTP immediately calculates spanning trees on the network. Configurations on a switching device, such as, the switching device priority and port priority, will affect spanning tree calculation. Any change of the configurations may cause network flapping. Therefore, to ensure rapid and stable spanning tree calculation, before enabling STP/RSTP/MSTP, perform basic configurations on the switching device and its interfaces. For example:
  • Run the stp [ instance instance-id ] priority priority command to set the priority of the switching device in the spanning tree.

  • Run the stp [ instance instance-id ] root primary command to set the switching device as the primary root bridge of the spanning tree.

  • Run the stp [ instance instance-id ] root secondary command to set the switching device as the secondary root bridge of the spanning tree.

Other configurations are needed based on real-world situations.

Precautions

  • If STP/RSTP/MSTP is enabled on an interface, the interface participates in the spanning tree calculation and determine whether it is in the forwarding state according to the calculation result.

  • If STP/RSTP/MSTP is disabled on an interface, the interface does not participate in the spanning tree calculation and it is always in the forwarding state.

  • STP/RSTP/MSTP must be enabled on all interfaces that participate in the spanning tree calculation. Otherwise, a loop may occur.

  • Spanning tree calculation may result in network flapping. Before network convergence, packets cannot be correctly forwarded. In this case, if the DHCP server is configured on a VLANIF interface, DHCP clients obtain IP addresses slowly. To solve the problem, disable STP or configure the device interface connected to a terminal as the edge interface.

Example

# Enable STP/RSTP/MSTP on a switching device.

<Huawei> system-view
[Huawei] stp enable

# Disable STP/RSTP/MSTP on GE0/0/1.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] stp disable
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 207893

Downloads: 122

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