- Table of Contents
 - 
                        
- 14-Security Configuration Guide
 - 00-Preface
 - 01-ACL configuration
 - 02-Time range configuration
 - 03-User profile configuration
 - 04-Public key management
 - 05-PKI configuration
 - 06-IPsec configuration
 - 07-SSH configuration
 - 08-SSL configuration
 - 09-Session management
 - 10-Attack detection and prevention configuration
 - 11-ARP attack protection configuration
 - 12-ND attack defense configuration
 - 13-Crypto engine configuration
 - 14-Connection limit configuration
 - 15-Password control configuration
 
 
- Related Documents
 - 
                        
 
| Title | Size | Download | 
|---|---|---|
| 02-Time range configuration | 46.80 KB | 
Contents
Restrictions and guidelines: Time range configuration
Display and maintenance commands for time ranges
Configuring time ranges
About time ranges
You can implement a service based on the time of the day by applying a time range to it. A time-based service takes effect only in time periods specified by the time range. For example, you can implement time-based ACL rules by applying a time range to them.
The following basic types of time ranges are available:
· Periodic time range—Recurs periodically on a day or days of the week.
· Absolute time range—Represents only a period of time and does not recur.
The active period of a time range is calculated as follows:
1. Combining all periodic statements.
2. Combining all absolute statements.
3. Taking the intersection of the two statement sets as the active period of the time range.
Restrictions and guidelines: Time range configuration
When you configure the ACL hardware mode, follow these restrictions and guidelines:
· If a time range does not exist, the service based on the time range does not take effect.
· You can create a maximum of 1024 time ranges, each with a maximum of 32 periodic statements and 12 absolute statements.
Procedure
1. Enter system view.
system-view
2. Create or edit a time range.
time-range time-range-name { start-time to end-time days [ from time1 date1 ] [ to time2 date2 ] | from time1 date1 [ to time2 date2 ] | to time2 date2 }
If an existing time range name is provided, this command adds a statement to the time range.
Display and maintenance commands for time ranges
Execute the display command in any view.
| 
    Task  | 
   
    Command  | 
  
 
| 
   Display time range configuration and status.  | 
  
   display time-range { time-range-name | all }  | 
 

