
10.3.6 Checking the Configuration
After a basic ACL is configured, you can view information about the basic ACL and time range.
Prerequisites
The basic ACL configurations are complete.
Procedure
l
Run the
display acl
acl-number
command to view the basic ACL with the specified number.
l
Run the
display acl name
acl-name
command to view the basic ACL with the specified
name.
l
Run the
display time-range
{
all
|
time-name
} command to view information about the
time range.
----End
Example
# Run the
display acl
acl-number
command to view the basic ACL number, the number of rules,
the step value, and the content of the rules.
<Huawei>
display acl 2009
Basic ACL 2009, 1 rule
Acl's step is 5
rule 5 deny source 10.1.1.1 0
# Run the
display acl name
acl-name
command to view the basic ACL name and number, the
number of rules, the step value, and the content of the rules.
<Huawei>
display acl name qos1
Basic ACL qos1 2999, 1 rule
Acl's step is 5
rule 5 permit source 202.114.24.56 0.0.0.255
# Run the
display time-range
all
command to view the configuration and status of the current
time range.
<Huawei>
display time-range all
Current time is 09:13:37 12-27-2010 Thursday
Time-range : test1 ( Inactive )
13:00 to 18:00 working-day
13:00 to 18:00 off-day
10.4 Configuring an Advanced ACL
An advanced ACL classifies IPv4 packets based on information such as source and destination
IP addresses, source and destination port numbers, packet priorities, and time ranges.
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.
194