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

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
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 Packet Filtering Rules Based on the Source MAC Address, Destination MAC Address, and Layer 2 Protocol Types

Configuring Packet Filtering Rules Based on the Source MAC Address, Destination MAC Address, and Layer 2 Protocol Types

  • To allow ARP packets with the specified destination and source MAC addresses, and Layer 2 protocol type to pass, configure a rule in a Layer 2 ACL. For example, to allow ARP packets with the destination MAC address of 0000-0000-0001, source MAC address of 0000-0000-0002, and Layer 2 protocol type of 0x0806 to pass, configure the following rule in ACL 4001.
    <HUAWEI> system-view
    [HUAWEI] acl 4001
    [HUAWEI-acl-L2-4001] rule permit destination-mac 0000-0000-0001 source-mac 0000-0000-0002 l2-protocol 0x0806
    
  • To reject PPPoE packets with the specified Layer 2 protocol type, configure a rule in a Layer 2 ACL. To reject PPPoE packets with the Layer 2 protocol type of 0x8863, configure the following rule in ACL 4001.
    <HUAWEI> system-view
    [HUAWEI] acl 4001
    [HUAWEI-acl-L2-4001] rule deny l2-protocol 0x8863

Related Information

Support Community

Videos

Configure ACL

Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 91266

Downloads: 12230

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