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

CLI-based Configuration Guide - Ethernet Switching

AR650, AR1600, and AR6100 V300R003

This document describes how to configure the components for LAN services, including link aggregation groups, VLANs, voice VLANs, MAC address tables, transparent bridging, as well as GVRP, STP/RSTP, and MSTP protocols.
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).
Disabling MAC Address Learning

Disabling MAC Address Learning

Background

The MAC address learning function is enabled by default on the router. When receiving a data frame, the router records the source MAC address of the data frame and the interface that receives the data frame in a MAC address entry. When receiving data frames destined for this MAC address, the router forwards the data frames through the outbound interface according to the MAC address entry. The MAC address learning function reduces broadcast packets on a network. After MAC address learning is disabled on an interface, the router does not learn source MAC addresses of data frames received by the interface, but the dynamic MAC address entries learned on the interface are not immediately deleted. These dynamic MAC address entries are deleted after the aging time expires or can be manually deleted using commands.

Procedure

  • Disable MAC address learning on an interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) Run portswitch

      The virtual Ethernet (VE) interface is switched from Layer 3 mode to Layer 2 mode.

      By default, a VE interface works in Layer 3 mode.

      You need to perform this operation after accessing the VE interface view.

    4. Run mac-address learning disable [ action { discard | forward } ]

      MAC address learning is disabled on the interface.

      By default, MAC address learning is enabled on an interface.

      By default, the router takes the forward action after MAC address learning is disabled. That is, the router forwards packets according to the MAC address table. When the action is set to discard, the router looks up the source MAC address of the packet in the MAC address table. If the source MAC address is found in the MAC address table, the router forwards the packet according to the matching MAC address entry. If the source MAC address is not found, the router discards the packet.

  • Disable MAC address learning in a VLAN.
    1. Run system-view

      The system view is displayed.

    2. Run vlan vlan-id

      The VLAN view is displayed.

    3. Run mac-address learning disable

      MAC address learning is disabled in the VLAN.

      By default, MAC address learning is enabled in a VLAN.

    NOTE:

    Only the AR6120 series support this function.

    The 4GE-2S, 4ES2G-S, 4ES2GP-S, and 9ES2 cards do not support this function.

Verifying the Configuration

  • Run the display mac-address summary command to check statistics on all the MAC address entries.
  • Run the display mac-address total-number command to check the number of MAC address entries.
Download
Updated: 2019-04-12

Document ID: EDOC1100041791

Views: 63045

Downloads: 41

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