A公司3560一台,端口F0/23接路由器上网,3560下有N个vlan,现在需要限制其中一个vlan用户在工作日(周一到周六8:00~12:00 13:30~17:30)不能上网。

vlan 100 IP地址192.168.3.0/24
 
1.修改路由器时间,确保时间准确性。
conf t
clocktimezoneCST+8 !修改时区
exit
clockset9:51:00Aug32012 !修改时间
2.定义时间范围
conf t
time-range workhard
periodic Monday Tuesday Wednesday Thursday Friday Saturday 8:00 to 12:00
periodic Monday Tuesday Wednesday Thursday Friday Saturday 13:30 to 17:30
exit
3.配置访问控制列表
access-list 101 deny ip 192.168.3.0 0.0.0.255 any time-range workhard
access-list 101 permit any any
int f0/23
access-group 101 out