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

S7700 and S9700 V200R012C00

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, 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 the MAC Address Limiting Function

Configuring the MAC Address Limiting Function

Context

The MAC address limiting function controls the number of MAC address entries the switch can learn on an interface or in a VLAN. An insecure network is vulnerable to MAC address attacks. A malicious user may attempt to consume MAC address table resources and thereby prevent the switch from learning new entries by sending large numbers of packets with spurious source MAC addresses.

To address this issue, you can limit the number of MAC address entries the switch can learn on an interface or in a VLAN. You can also configure an action to take when the limit is reached.

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 switch 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 switch is configured to generate or not generate an alarm when the number of learned MAC address entries reaches the limit.

      By default, the switch 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 action { discard | forward }

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

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

      SA cards of S series and F series cards do not support the discard action.

    5. Run mac-limit alarm { disable | enable }

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

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

  • Limit the number of MAC address entries learned in a VSI.
    1. Run system-view

      The system view is displayed.

    2. Run vsi vsi-name

      The VSI view is displayed.

    3. Run mac-limit maximum max-num

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

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

      Only the E series cards, X series cards, FA series cards of the S7700&S9700 support this command.

    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 switch 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 switch is configured to generate or not generate an alarm when the number of learned MAC address entries reaches the limit.

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

  • Limit the number of MAC address entries learned in a slot.
    1. Run system-view

      The system view is displayed.

    2. Run mac-limit slot slot-id maximum max-num

      The maximum number of MAC address entries learned in a slot is set.

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

    3. Run mac-limit slot slot-id action { discard | forward }

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

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

    4. Run mac-limit slot slot-id alarm { disable | enable }

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

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

Verifying the Configuration

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

Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038843

Views: 94811

Downloads: 67

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