
10.3.2 (Optional) Creating a Time Range for a Basic ACL
To make a basic ACL take effect during a specified period of time, create a time range and
reference the time range in the basic ACL. If no time range is specified for the ACL, the ACL
remains effective until it is deleted or the rules of the ACL are deleted.
Context
Some services or functions that reference basic ACLs need to be started during a specified period
of time, for example, QoS needs to be started during peak hours. You can create a time range
and reference the time range in a basic ACL so that the basic ACL takes effect in the time range.
The service or function that references the basic ACL is also started in the specified time range.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
time-range
time-name
{
start-time
to
end-time
days
|
from
time1
date1
[
to
time2
date2
] }
A time range is created.
To configure multiple time ranges with the same name on the AR1200-S, run the preceding
command with the same value of
time-name
multiple times.
NOTE
You can configure the same name for multiple time ranges to describe a special period. Assume that the same
name
test
is configured for the following time ranges:
l
Time range 1: 2010-01-01 00:00 to 2010-12-31 23:59 (absolute time range)
l
Time range 2: 8:00 to 18:00 from Monday to Friday (periodic time range)
l
Time range 3: 14:00 to 18:00 on Saturday and Sunday (periodic time range)
The time range
test
includes 8:00-18:00 on Monday to Friday and 14:00-18:00 on Saturday and Sunday in 2010.
----End
Follow-up Procedure
Reference the time range in a basic ACL rule.
10.3.3 Creating a Basic ACL
Before using a basic ACL, ensure that the basic ACL has been created. You can create a named
or numbered basic ACL.
Prerequisites
The
display acl
all
command has been executed to view all the configured ACLs. This prevents
duplicate basic ACLs from being configured.
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.
189