Conf
r
ime ranges can be used to filter packets. You can specify a time range for each rule in an ACL. A time
ACL takes effect only in specified time ranges. Only after a time range is configured and
the system time is within the time range, can an ACL rule take effect.
iodic time range, which recurs periodically on the day or days of the week.
z
Absolute time range, which takes effect only in a period of time and does not recur.
igu ing Time Range
T
range-based
Two types of time ranges are available:
z
Per
An absol
e on Switch 4500
e range 1970/1/1 00:00 to 2100/12/31
2
ute time rang
Series can be within th
4:00.
Configuration procedure
Follow these steps to configure a time range:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Cr
start-date
[
to
end-time end-date
] |
to
end-time end-date
}
eate a time range
time-range time-name
{
start-time to end-time
days-of-the-week
[
from
start-time start-date
]
[
to
end-time end-date
] |
from
start-time
Required
Note
z
ction is defined in a time range, the time range is active only when the
z
e is active only when the system time is within one of the
z
he periodic time range and the absolute time range are both matched.
ange contains an absolute time section ranging from 00:00 January 1, 2004 to
23:59 December 31, 2004, and a periodic time section ranging from 12:00 to 14:00 on every
rom 12:00 to
esday in 2004.
s from 1970/1/1 00:00 and ends on the
is not specified, the time section starts from the specified start
that:
If only a periodic time se
system time is within the defined periodic time section. If multiple periodic time sections are defined
in a time range, the time range is active only when the system time is within one of the periodic time
sections.
If only an absolute time section is defined in a time range, the time range is active only when the
system time is within the defined absolute time section. If multiple absolute time sections are
defined in a time range, the time rang
absolute time sections.
If both a periodic time section and an absolute time section are defined in a time range, the time
range is active only when t
Assume that a time r
Wednesday. This time range is active only when the system time is within the range f
14:00 on every Wedn
z
If the start time is not specified, the time section start
specified end date. If the end date
date to 2100/12/31 23:59.
44-4