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).
Example for Configuring MAC Address Limiting Rules on Interfaces

Example for Configuring MAC Address Limiting Rules on Interfaces

Networking Requirements

As shown in Figure 1-9, Ethernet2/0/1 and Ethernet2/0/2 of the Router are connected to LSWs. One LSW is connected to individual users, and the other is connected to enterprise users. To prevent MAC address attacks and limit the number of access users on the Router, configure MAC address limiting rules on Ethernet2/0/1 and Ethernet2/0/2.

Figure 1-9  Network diagram for MAC address limiting on interfaces

Configuration Roadmap

The configuration roadmap is as follows:

  1. Set the limit on the number of MAC addresses learned by the interfaces.

  2. Set the action performed when the limit is reached.

Procedure

  1. Configure MAC address limiting rules on the interfaces.

    <Huawei> system-view
    [Huawei] interface ethernet 2/0/1
    [Huawei-Ethernet2/0/1] mac-limit maximum 4 action discard alarm enable
    [Huawei-Ethernet2/0/1] quit
    [Huawei] interface ethernet 2/0/2
    [Huawei-Ethernet2/0/2] mac-limit maximum 100 action discard alarm enable
    [Huawei-Ethernet2/0/2] quit
    

  2. Verify the configuration.

    # Run the display mac-limit command in any view to check whether the MAC address limiting rule is successfully configured.

    <Huawei> display mac-limit
    -----------------------------------------------------------------------
    PORT                     VLAN      Maximum      Action      Alarm
    -----------------------------------------------------------------------
    Eth2/0/1                 -         4            discard     enable
    Eth2/0/2                 -         100          discard     enable
    
    -----------------------------------------------------------------------
    

Configuration Files

Configuration file of the Router

#
interface Ethernet2/0/1
 mac-limit maximum 4
#
interface Ethernet2/0/2
 mac-limit maximum 100
#
return
Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097279

Views: 19280

Downloads: 64

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