
l
Creating a named Layer 2 ACL
1.
Run:
system-view
The system view is displayed.
2.
Run:
acl name
acl-name
{
link
|
acl-number
} [
match-order
{
auto
|
config
} ]
A Layer 2 ACL with the specified name is created and the Layer 2 ACL view is
displayed.
acl-number
specifies the number of a Layer 2 ACL. The value ranges from 4000 to
4999.
match-order
specifies the matching order of Layer 2 ACL rules:
–
auto
: indicates that ACL rules are matched based on the depth first principle.
–
config
: indicates that ACL rules are matched based on the sequence in which they
were configured.
3.
(Optional) Run:
description
text
The description of the Layer 2 ACL is configured.
The description of an ACL describes the function or usage of the ACL. It is used to
differentiate ACLs.
By default, no description is configured for an ACL.
----End
Follow-up Procedure
Configure rules in the Layer 2 ACL.
10.5.4 Configuring a Layer 2 ACL Rule
A Layer 2 ACL is composed of a list of rules. The ACL classifies packets by matching packet
information with the ACL rules.
Prerequisites
A Layer 2 ACL has been created and the Layer 2 ACL view is displayed.
Before creating a new rule, run the
display acl
{
acl-number
|
name
acl-name
} command to
view all the configured ACL rules to prevent the new rule from overriding existing rules.
Context
A Layer 2 ACL classifies packets by matching packet information with the ACL rules. After a
Layer 2 ACL is created, configure rules in the Layer 2 ACL.
Procedure
Step 1
(Optional) Run:
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
10 ACL Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
205