3Com Switch 4200G Configuration Guide
Defining Basic ACLs 203
Configuration Procedure
If only a periodic time section is defined in a time range, the time range is active only
within the defined periodic time section.
If only an absolute time section is defined in a time, the time range is active only
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 defines an absolute time
section from 00:00 January 1, 2004 to 23:59 December 31, 2004, and a periodic time
section from 12:00 to 14:00 every Wednesday. This time range is active only from
12:00 to 14:00 every Wednesday in 2004.
If the start time is specified, the time range starts on the current date and ends on the
end date.
If the end date is note specified, the time range is from the date of configuration till
the largest date available in the system.
Configuration Example Define a time range that will be active from 8:00 to 18:00 Monday through Friday.
<S4200G> system-view
[4200G] time-range test 8:00 to 18:00 working-day
[4200G] display time-range test
Current time is 13:27:32 4/16/2005 Saturday
Time-range : test ( Inactive )
08:00 to 18:00 working-day
Defining Basic ACLs A basic ACL defines rules only based on the L3 source IP addresses to analyze and
process data packets.
The value range for basic ACL numbers is 2,000 to 2,999.
Configuration
Preparation
Before configuring an ACL rule containing time range arguments, you need to
configure define the corresponding time ranges. For the configuration of time ranges,
refer to ?Advanced ACL.
The value of the source IP address information in the rule has been defined.
Table 172 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 time ranges
display time-range { all | time-name } Optional
The display command can be
executed in any view