(Optional) Configuring the Validity Time Range of a Rule
Context
Deleting an ACL validity time range may cause invalidity of some ACLs. Therefore, use this command with caution.
Procedure
- Run system-view
The system view is displayed.
- Run time-range time-name { start-time to end-time { days } &<1-7> | from time1 date1 [ to time2 date2 ] }
A time range is created.
By default, no time range is set.
If multiple time ranges are configured using the same time-name value, the system takes the union of periodic time ranges and the union of absolute time ranges, and then takes the intersection of the two unions as the final time range. In this example, the name test is used to configure the following time ranges:- Time range 1: 01.01.2010 00:00 to 31.12.2010 23:59 (absolute time range)
- Time range 2: 8:00 to 18:00 from Monday to Friday (periodic time range)
- Time range 3: 14:00 to 18:00 on Saturday and Sunday (periodic time range)
You are advised to configure the Network Time Protocol (NTP) to ensure that devices on the network use the same system time. For the NTP configuration, see Configuring Basic NTP Functions in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - Network Management.
- Run commit
The configuration is committed.