4
[Sysname] acl number 2000
[Sysname-acl-basic-2000] description This is an IPv4 basic ACL.
display acl
Syntax
display
acl
{
acl-number
|
all
|
name
acl-name
}
View
Any view
Default level
1: Monitor level
Parameters
acl-number
: Specifies an ACL by its number:
•
2000 to 2999 for IPv4 basic ACLs
•
3000 to 3999 for IPv4 advanced ACLs
•
4000 to 4999 for Ethernet frame header ACLs
all
: Displays information for all IPv4 ACLs.
name
acl-name
: Specifies an ACL by its name. The
acl-name
argument takes a case-insensitive string of
1 to 32 characters. It must start with an English letter.
Description
Use the
display
acl
command to display the IPv4 ACL configuration and match statistics.
This command displays ACL rules in config or depth-first order, whichever is configured.
Examples
# Display all IPv4 configuration and match statistics.
<Sysname> display acl all
Basic ACL 2000, named flow, 3 rules,
ACL's step is 5
rule 0 permit
rule 5 permit source 1.1.1.1 0 (2 times matched)
rule 10 permit vpn-instance mk
Basic ACL 2001, named -none-, 3 rules, match-order is auto,
ACL's step is 5
rule 10 permit vpn-instance rd
rule 10 comment This rule is used in VPN rd.
rule 5 permit source 2.2.2.2 0
rule 0 permit
Table 1
Output description
Field
Description
Basic ACL 2000
Category and number of the ACL. The following field information is about IPv4
basic ACL 2000.