
Procedure
l
Creating a numbered basic ACL
1.
Run:
system-view
The system view is displayed.
2.
Run:
acl
[
number
]
acl-number
[
match-order
{
auto
|
config
} ]
A basic ACL with the specified number is created and the basic ACL view is displayed.
acl-number
specifies the number of a basic ACL. The value ranges from 2000 to 2999.
match-order
specifies the matching order of basic 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 basic 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.
l
Creating a named basic ACL
1.
Run:
system-view
The system view is displayed.
2.
Run:
acl name
acl-name
{
basic
|
acl-number
} [
match-order
{
auto
|
config
} ]
A basic ACL with the specified name is created and the basic ACL view is displayed.
acl-number
specifies the number of a basic ACL. The value ranges from 2000 to 2999.
match-order
specifies the matching order of basic 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 basic 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
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.
190