Parameter | Description | Value |
---|---|---|
acl-number |
Specifies the number of an ACL. |
For IPv4 ACL, the value is an integer ranging from 2000 to 4999, 10000 to 10999.
For IPv6 ACL, The value is an integer ranging from 2000 to 3999.
|
name acl-name |
Specifies the name of an ACL. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive). |
all |
Indicates all ACLs. |
- |
ipv6 |
Specifies ACL6. |
- |
Usage Scenario
To check ACL-based traffic policy statistics, run the display acl statistics command.
Prerequisites
The statistics collecting function has been enabled on the interface to which the traffic policy applies.
Precautions
This command does not display ACL-based statistics about traffic policies in which traffic classifiers are configured to work in AND relationships using the traffic classifier <classifier-name> command or on the board that does not support cascaded traffic policies.
This command does not have a corresponding MIB object.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display acl 3000 statistics Info: No ACL statistics are displayed for classifier working in And mode or casc ading policies that are not supported. Acl : 3000 Rule : 5 Classifier : test Policy : test Mode : Share Packets : 300 Bytes : 600 Matched : Passed Interface : GigabitEthernet0/1/0 Direction : Inbound Pvlan : 0 Cvlan : 0 Rule : 6 Classifier : test Policy : test Mode : Share Packets : 400 Bytes : 800 Matched : Passed Interface : GigabitEthernet0/1/0 Direction : Inbound Pvlan : 0 Cvlan : 0 Rule : 5 Classifier : test Policy : test1 Mode : Unshare Packets : 300 Bytes : 600 Matched : Passed Interface : GigabitEthernet0/1/0.1 Direction : Inbound Pvlan : 1 Cvlan : 1 Rule : 6 Classifier : test Policy : test1 Mode : Unshare Packets : 400 Bytes : 800 Matched : Passed Interface : GigabitEthernet0/1/0.1 Direction : Inbound Pvlan : 1 Cvlan : 1
Item | Description |
---|---|
Acl | ACL name or number. |
Rule | ID of an ACL rule. |
Classifier | Name of a traffic classifier. |
Policy | Name of traffic policy. |
Mode | Shared or unshared mode of a traffic policy. |
Packets | Number of packets matching the ACL. |
Bytes | Number of packets matching the ACL. |
Matched | Traffic behavior for packets matching the ACL. |
Interface | Name of the interface that receives the packets. |
Direction | Direction of the traffic to which the ACL applies. |
Pvlan | PE-VID specified for the traffic policy. |
Cvlan | CE-VID specified for the traffic policy. |