The display acl command displays information about rules of a specified or all ACLs and packet matching statistics.
| Parameter | Description | Value |
|---|---|---|
| name acl-name |
Specifies the name of an ACL. |
The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits. |
| all |
Displays information about all ACLs. |
- |
| basic-acl-number |
Specifies the number of an ACL. |
The value is an integer ranging from 2000 to 2999, the number of a basic ACL ranges from 2000 to 2999. |
| advance-acl-number |
Specifies the number of an ACL. |
The value is an integer ranging from 3000 to 3999, the number of an advanced ACL ranges from 3000 to 3999. |
| interface-based-acl-number |
Specifies the number of an ACL. |
The value is an integer ranging from 1000 to 1999, the number of an interface ACL ranges from 1000 to 1999. |
| ucl-acl-number |
Specifies the number of an ACL. |
The value is an integer ranging from 6000 to 9999, the number of a user ACL ranges from 6000 to 9999. |
| mpls-acl-number |
Specifies the number of an ACL. |
The value is an integer ranging from 10000 to 10999, the number of an MPLS-based ACL ranges from 10000 to 10999. |
| numberLink |
Specifies the number of an ACL. |
The value is an integer ranging from 4000 to 4999, the number of a Layer 2 ACL ranges from 4000 to 4999. |
Usage Scenario
You can run the display acl command for the following purposes:
Precautions
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display acl 2001
Basic ACL 2001, 2 rules, match-order is auto
ACL's step is 5
rule 5 permit source 10.1.1.1 0 (2 times matched)
rule 10 permit source 10.2.1.1 0 (3 times matched)
| Item | Description |
|---|---|
| Basic ACL 2001, 2 rules | Type and number of the ACL and number of rules in the ACL. |
| 2 times matched | Number of times an ACL rule is matched. If this ACL is not referenced for any service, there is no matched times displayed. |
| ACL's step is 5 | ACL's step, which is 5 by default. |
| rule 5 permit source 10.1.1.1 0 | Detailed information about an ACL rule. |
| match-order is auto | ACL rule matching order. There are two ACL rule-matching orders: configuration order (config) and automatic order (auto).
|