Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 3 Access Control List Configuration
Commands
3Com Corporation
3-9
from time1 date1: Optional, which is used to indicate the start time and date. The input
format of time is hh:mm, which is shown in 24-hour notation. The range of hh is from 0
to 23 and the range of mm is from 0 to 59. The input format of date is MM/DD/YYYY. DD
can be in the value range from 1 to 31. MM is one number in the range form 1 to 12 and
YYYY is a 4-digit number. If no start time is set, it means that there is no restriction on
start time and only the end time should be considered.
to time2 date2: Optional. It is used to indicate the end time and date. In addition, the
input format of time and date is the same with that of the start time. The end time must
be greater than the start time. If the end time is not set, it will be the maximum time that
the system can set.
Description
Use the time-range command to specify a time range.
Use the undo time-range command to delete a time range.
A time range can be one of the following types:
z Absolute time range created using the time-range time-name [ from time1 date1 ]
[ to time2 date2 ] command. For example, you can use the time-range test from
20:00 04/01/2003 to 20:00 12/10/2003 command in system view to create an
absolute time range spanning from April 1, 2003 20:00 to December 10, 2003
20:00.
z Periodic time range created using the time-range time-name [ start-time to
end-time ] [ days ] command. For example, you can create a periodic time range
spanning from 12:00 to 17:00 on a daily basis.
z Periodic time range effective within an absolute time range, created by the
time-range time-name [ start-time to end-time ] [ days ] [ from time1 date1 ] [ to
time2 date2 ] command. For example, you can use the time-range test 14:00 to
16:00 off-day from 20:00 04/01/2003 to 20:00 12/10/2003 command in system
view to create a time range spanning from 14:00 to 16:00 and effective on off-days
between April 1, 2003 20:00 and December 10, 2003 20:00.
z Combined time range formed by multiple time range segments. If no periodic time
range segment is included, the combined time range is the union of all the
absolute time range segments. If periodic time range segments are included, the
combined time range is the intersection of the absolute time range segment union
and the periodic time range segment union.
To display the configured time range, use the display time-range command.
Example
# Configure the time range valid at 0:0 on Jan. 1, 2003, always valid.
[3Com] time-range test from 0:0 1/1/2003
# Configure the time range valid between 14:00 and 16:00 in every weekend from
20:00 on Apr.01, 2003 to 20:00 on Dec.10, 2003.