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 - Security

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of Security, including ACL, local attack defense, MFF, attack defense, traffic suppression and storm control, ARP security, Port security, DHCP snooping, ND snooping, PPPoE+, IPSG, SAVI, separating the management plane from the service plane, security risks.
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 a Layer 2 ACL Rule

Configuring a Layer 2 ACL Rule

Context

Layer 2 ACLs classify packets by matching packet information against its rules. After an ACL is created, configure rules in the ACL.

NOTE:

When the device receives a packet, it matches the packet against ACL rules one by one based on the configuration order. Once the packet matches a rule in an ACL rule group, the device stops the matching process and performs the action specified in the matching rule on the packet.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run acl { [ number ] acl-number | name acl-name { [ number ] acl-number | link } }

    A Layer 2 ACL is created, and the Layer 2 ACL view is displayed.

    The parameter acl-number specifies the number of a Layer 2 ACL. The value ranges from 4000 to 4999.

    By default, no ACL is created.

  3. Run rule [ rule-id ] [ name rule-name ] { deny | permit } [ type type [ type-mask ] | source-mac source-mac [ source-mac-mask ] | destination-mac dest-mac [ dest-mac-mask ] | [ ether-ii | 802.3 | snap ] | vlan vlan-id [ vlan-mask ] | 8021p 8021p | inner-vlan inner-vlan-id [ inner-vlan-mask ] | inner-8021p inner-8021p | double-tag | time-range time-name ] *

    A Layer 2 ACL rule is configured.

    NOTE:
    When you configure a Layer 2 ACL rule:
    • If ether-ii | 802.3 | snap is specified, only packets with a specified encapsulation type are filtered.
    • If ether-ii | 802.3 | snap is not specified, all the packets are filtered.
    • When you specify the parameter time-range to reference a time range to the ACL, the ACL cannot be bound to the specified time range if the specified time-name does not exist.

  4. (Optional) Run rule rule-id description description

    The description of a Layer 2 ACL rule is configured.

    By default, no description is configured for an ACL rule.

    You are not allowed to configure the description for a rule that has not been created.

  5. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100074765

Views: 23988

Downloads: 93

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