< Home

display acl

Function

The display acl command displays the configuration of an ACL.

Format

display acl { acl-number | name acl-name | all }

Parameters

Parameter Description Value
acl-number Specifies the number of an ACL. The value is an integer.
  • The number of a basic ACL ranges from 2000 to 2999.
  • The number of a numbered advanced ACL ranges from 3000 to 3999.
  • The number of a Layer 2 ACL ranges from 4000 to 4999.
  • The number of a user-defined ACL ranges from 5000 to 5999.
  • The number of a user ACL ranges from 6000 to 9999.
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.

all Indicates all ACLs. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display acl command displays the ACL configuration.

Example

# Display configuration about the ACL named test.

<HUAWEI> display acl name test
Advanced ACL test 3999, 1 rule, match-order is auto
Acl's step is 5
 rule 5 permit ip destination 10.10.10.1 0

# Display the ACL configuration.

<HUAWEI> display acl all
 Total nonempty ACL number is 1
 
Advanced ACL 3000, 1 rule
Acl's step is 5
 rule 5 permit ip dscp cs1
Table 1 Description of the display acl command output

Item

Description

Advanced ACL test 3999, 1 rule, match-order is auto

Advanced ACL 3999 named test that matches in the automatic order and contains one rule.

Acl's step is 5

The ACL's step is 5.

To set the step between ACL rule IDs, run the step command.

rule 5 permit ip destination 10.10.10.1 0

Rule 5 that matches packets whose source IP address is 10.10.10.1.

To modify an advanced ACL rule, run the rule (advanced ACL view) command.

Total nonempty ACL number is 1

One ACL contains rules.

Advanced ACL 3000, 1 rule

Advanced ACL 3000 contains one rule.

rule 5 permit ip dscp cs1

Rule 5 that matches packets with DSCP priorities.

To modify an advanced ACL rule, run the rule (advanced ACL view) command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >