Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Time based ACL problem!

I am using time-based ACL for managing bandwidth,if I have to allow any traffic between 22:00 (10:00pm) to 3:00 (3:00am)in weekdays,then if I write

#periodic weekdays 22:00 to 3:00

then is it correct because at 24:00 date will change, it can be done with

#periodic weekdays 22:00 to 23:59

#periodic weekdays 0:01 to 3:00

is it possible to write this in one statement?

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Member

Re: Time based ACL problem!

The answer is indeed "yes", but not in this way. :)

Test_172.1(config-time-range)#periodic weekdays 22:00 to 03:00

Ending time must be greater than starting time

The "trick" is obviuos - define periodic weekdays 3:00 to 22:00 and explicitly DENY the traffic for this time-range.

3 REPLIES
Cisco Employee

Re: Time based ACL problem!

Hello eshahidwol,

You asked "is it possible to write this in one statement?". I seem to recall from my testing the answer is yes. You might want to test just to be 100% sure.

Hope that helps! If so, please rate.

Thanks

Community Member

Re: Time based ACL problem!

The answer is indeed "yes", but not in this way. :)

Test_172.1(config-time-range)#periodic weekdays 22:00 to 03:00

Ending time must be greater than starting time

The "trick" is obviuos - define periodic weekdays 3:00 to 22:00 and explicitly DENY the traffic for this time-range.

Community Member

Re: Time based ACL problem!

I got it....

Thanks alot for your help!

185
Views
0
Helpful
3
Replies
CreatePlease to create content