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.


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 Static MAC Address Entry

Configuring a Static MAC Address Entry


To keep its MAC address table current, a switch learns source MAC addresses of packets. However, the switch cannot distinguish packets from authorized and unauthorized users, leading to security risks. For example, if an unauthorized user spoofs the MAC address of an authorized user and connects to another interface of the switch, the switch learns an incorrect MAC address entry. As a result, packets destined for the authorized user are forwarded to the unauthorized user. To address this issue, create static MAC address entries to bind MAC addresses of authorized users to specified interfaces.

Static MAC address entries have the following characteristics:

  • A static MAC address entry will not be aged out. After being saved, a static MAC address entry will not be lost after a system restart, and can only be deleted manually.
  • The VLAN bound to a static MAC address entry must have been created and assigned to the interface bound to the entry.
  • The MAC address in a static MAC address entry must be a unicast MAC address, and cannot be a multicast or broadcast MAC address.
  • A static MAC address entry takes precedence over a dynamic MAC address entry. The system discards packets with flapping static MAC addresses.


  1. Run system-view

    The system view is displayed.

  2. Run mac-address static mac-address interface-type interface-number vlan vlan-id

    A static MAC address entry is created.

Verifying the Configuration

Run the display mac-address static command to check configured static MAC address entries.

Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 166765

Downloads: 697

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