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

Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

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, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, 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

Context

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.

Procedure

For S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI switches, perform the following operations.

  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.

For S1720GF, S1720GFR, S1720GW, S1720GW-E, S1720GWR, S1720GWR-E, S1720X, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720I-SI, S5720LI, S5720S-LI, S5720S-SI, S5720SI, S5730S-EI, S5730SI, S6720LI, S6720S-LI, S6720S-SI, and S6720SI, perform the following operations.

  1. Run system-view

    The system view is displayed.

  2. Run mac-spoofing-defend enable

    Global MAC spoofing defense is enabled.

    By default, global MAC spoofing defense is disabled.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Run mac-spoofing-defend enable

    MAC spoofing defense is enabled on the interface so that the interface becomes a trusted interface.

    By default, MAC spoofing defense is disabled on an interface.

Verifying the Configuration

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

Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 168269

Downloads: 701

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