ACL based on time

Publication Date:  2015-11-27 Views:  126 Downloads:  0
Issue Description
There is POC of S5700. Customer has special requirement to us. They want our switch to limit the access of internet in non-office working hour.
Solution
To achieve this, we can set traffic policy and apply it in the inbound direction of Gi0/0/0(internal network) to prevent packet matching the rule of ACL.

Configuration:
time-range work 09:00 to 18:00 working-day
time-range work 09:00 to 13:00 Sat
#
diffserv domain default
#
acl number 2000
rule 5 permit time-range work
rule 10 deny

interface GigabitEthernet0/0/1
traffic-filter outbound acl 2000

END