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

AR500, AR510, and AR530 V200R007 CLI-based Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring transparent bridge, MAC table, link aggregation, VLANs, STP/RSTP/MSTP, and so on.The document provides the configuration procedures and configuration examples to illustrate the service configuration methods and application scenario.
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 the MAC Address Limiting Function

Configuring the MAC Address Limiting Function

Context

The MAC address limiting function controls the number of access users to prevent MAC addresses from hackers.

An insecure network is vulnerable to MAC address attacks. When hackers send a large number of forged packets with different source MAC addresses to the industrial switch router, the MAC address table of the industrial switch router will be filled with useless MAC address entries. As a result, the industrial switch router cannot learn source MAC addresses of valid packets.

You can limit the number of MAC address entries learned on the industrial switch router. When the number of learned MAC address entries reaches the limit, the industrial switch router does not learn new MAC address entries. You can also configure an action to take when the number of MAC address entries reaches the limit. This prevents MAC address attacks and improves network security.

NOTE:

TheAR530 series do not support limiting the number of MAC addresses learned in a VLAN.

AR500 series does not support limiting the number of MAC addresses learned.

Procedure

  • Limit the number of MAC address entries learned 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. Run:

      mac-limit maximum max-num

      The maximum number of MAC address entries that can be learned on the interface is set.

      By default, the number of MAC address entries learned on an interface is not limited.

    4. Run:

      mac-limit action { discard | forward }

      The action to take when the number of learned MAC address entries reaches the limit is configured.

      By default, the industrial switch router discards packets with new MAC addresses when the number of learned MAC address entries reaches the limit.

    5. Run:

      mac-limit alarm { disable | enable }

      The industrial switch router is configured to or not to generate an alarm when the number of learned MAC address entries reaches the limit.

      By default, the industrial switch router generates an alarm when the number of learned MAC address entries reaches the limit.

  • Limit the number of MAC address entries learned 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-limit maximum max-num

      The maximum number of MAC address entries learned in the VLAN is set.

      By default, the number of MAC address entries learned in a VLAN is not limited.

    4. Run:

      mac-limit alarm { disable | enable }

      The industrial switch router is configured to or not to generate an alarm when the number of learned MAC address entries reaches the limit.

      By default, the industrial switch router generates an alarm when the number of learned MAC address entries reaches the limit.

Checking the Configuration

Run the display mac-limit command to check limiting on MAC address learning.

Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 9555

Downloads: 62

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