2 time range configuration, 1 configuration procedure, 2 time range configuration -3 – H3C Technologies H3C S3100 Series Switches User Manual
Page 379: 1 configuration procedure -3

Operation Manual – ACL
H3C S3100-52P Ethernet Switch
Chapter 1 ACL Configuration
1-3
z
Advanced ACL
z
Layer 2 ACL
z
User-defined ACL
1.2 Time Range Configuration
A time range can contain multiple time sections in a time range. The time sections in an
ACL are of the logical OR relationship.
A time section can be periodic or absolute. A periodic time section is defined by
specifying days of a week, while an absolute time section is defined by specifying the
start time and the end time.
1.2.1 Configuration Procedure
Table 1-1
Configure a time range
Operation
Command
Description
Enter system view system-view
—
Create 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 start-date
[ to end-time
end-date
] | to end-time end-date }
Required
Display a time
range or all the
time ranges
display
time-range { all |
time-name
}
Optional
This command can be
executed in any view.
If only a periodic time section is defined in a time range, the time range is active only
when the system time within the defined periodic time section.
If only an absolute time section is defined in a time range, the time range is active only
when the system time within the defined absolute time section.
If both a periodic time section and an absolute time section are defined in a time range,
the time range is active only when the periodic time range and the absolute time range
are both matched. Assume that a time range 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 Wednesday. This time range is active only when
the system time within the range from 12:00 to 14:00 on every Wednesday in 2004.
If the start time is not specified, the time section starts on the current date and ends on
the end date.
If the end date is not specified, the time section ends on the most forward time the
system can hold.