Time-Range - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

By default, an ACL rule has no comment.
Before defining a comment for an ACL rule, make sure that the ACL rule exists.
Examples
# Define the comment "This rule is to be applied to Ethernet 1/0/1" for rule 0 of advanced ACL 3001.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl number 3001
[Sysname-acl-adv-3001] rule 0 comment This rule is to be applied to Ethernet 1/0/1
# Use the display acl command to view the configuration information of advanced ACL 3001.
[Sysname-acl-adv-3001] display acl 3001
Advanced ACL
Acl's step is 1
rule 0 deny IP source 1.1.1.1 0 destination 2.2.2.2 0
rule 0 comment This rule is to be applied to Ethernet 1/0/1

time-range

Syntax
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 }
undo time-range { all | name 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 ] }
View
System view
Parameters
all: Removes all the time ranges.
time-name: Name of a time range, a case insensitive string of 1 to 32 characters that starts with a to z or
A to Z. To avoid confusion, it cannot be all.
start-time: Start time of a periodic time range, in the form of hh:mm.
end-time: End time of a periodic time range, in the form of hh:mm. The end time must be greater than
the start time.
days-of-the-week: Day of the week when the periodic time range is active. You can provide this
argument in one of the following forms.
Numeral (0 to 6)
Mon, Tue, Wed, Thu, Fri, Sat, and Sun
Working days (Monday through Friday)
Off days (Saturday and Sunday)
Daily, namely everyday of the week
from start-time start-date: Specifies the start date of an absolute time range, in the form of hh:mm
MM/DD/YYYY or hh:mm YYYY/MM/DD. The start-time start-date and end-time end-date argument
3001, 1 rule
1-24

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents