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


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


S9300, S9300E, and S9300X V200R012C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, HVRP, and Layer 2 protocol transparent transmission.
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 a MAC Address Learning Priority for an Interface

Configuring a MAC Address Learning Priority for an Interface


To prevent MAC address flapping, set different MAC address learning priorities for interfaces. When two interfaces learn the same MAC address entries, the MAC address entries learned by the interface with a higher priority override the MAC address entries learned by the other interface.

This configuration is not supported on the SA cards on S series switches.


  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run mac-learning priority priority-id

    The MAC address learning priority of the interface is set.

    By default, the MAC address learning priority of an interface is 0. A larger priority value indicates a higher MAC address learning priority.

  4. Run mac-learning priority flapping-defend action discard

    The switch is configured to discard packets when configured to prohibit MAC address flapping.

    By default, the action is forward when configured to prohibit MAC address flapping.

Verifying the Configuration

Run the display current-configuration command to check the MAC address learning priorities of interfaces.

Updated: 2019-01-18

Document ID: EDOC1100038290

Views: 110677

Downloads: 24

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