Configuring IP ACLs
Command or Action
switch(config-time-range)# copy running-config
startup-config
Changing a Time-Range
You can add and remove rules in an existing time range. You cannot change existing rules. Instead, to change
a rule, you can remove it and recreate it with the desired changes.
If you need to add more rules between existing rules than the current sequence numbering allows, you can
use the resequence command to reassign sequence numbers.
SUMMARY STEPS
1. configure terminal
2. time-range name
3. (Optional) [sequence-number] periodic weekday time to [weekday] time
4. (Optional) [sequence-number] periodic list-of-weekdays time to time
5. (Optional) [sequence-number] absolute start time date [end time date]
6. (Optional) [sequence-number] absolute [start time date] end time date
7. (Optional) no {sequence-number | periodic arguments . . . | absolute arguments. . .}
8. (Optional) show time-range name
9. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
time-range name
Example:
switch(config)# time-range workday-daytime
switch(config-time-range)#
Step 3
(Optional) [sequence-number] periodic weekday time to
[weekday] time
Example:
switch(config-time-range)# periodic monday 00:00:00
to friday 23:59:59
Step 4
(Optional) [sequence-number] periodic list-of-weekdays
time to time
Example:
switch(config-time-range)# 100 periodic weekdays
05:00:00 to 22:00:00
Purpose
Purpose
Enters global configuration mode.
Enters time-range configuration mode for the specified time
range.
Creates a periodic rule that is in effect for one or more
contiguous days between and including the specified start
and end days and times.
Creates a periodic rule that is in effect on the days specified
by the list-of-weekdays argument between and including
the specified start and end times. The following keywords
are also valid values for the list-of-weekdays argument:
• daily —All days of the week.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
Changing a Time-Range
281