How to configure an ACL time range on a WLAN device

If some services or functions need to be started at intervals or a specific period of time, run the time-range command on a WLAN device. When configuring ACL rules, you can use the name of a time range to reference this time range.

You can associate a time range with ACL rules in either of the following ways:

Mode 1 �?Periodic time range: defines a time range by week. The associated ACL rules take effect at an interval of one week. For example, if the time range of ACL rules is 8:00-12:00 on Monday, the ACL rules take effect at 8:00-12:00 on every Monday.

Format: time-range time-name start-time to end-time { days } &<1-7>

Mode 2 �?Absolute time range: defines a time range from YYYY/MM/DD hh:mm to YYYY/MM/DD hh:mm. The associated ACL rules take effect only in this period.

Format: time-range time-name from time1 date1 [ to time2 date2 ]

Create time range working-time (8:00�?8:00 from Monday to Friday) and configure a rule in ACL work-acl. The rule rejects the packets from network segment within the period of the working time.

[HUAWEI] time-range working-time 8:00 to 18:00 working-day

[HUAWEI] acl name work-acl basic

[HUAWEI-acl-basic-work-acl] rule deny source time-range working-time

Scroll to top