CISCO 基於時間訪問控制

最近公司抽風式要求食堂二樓安裝無線AP僅供員工午休時間使用,在網上參閱很多,找到以下方法。

目的:只允許3.3.3.2中午12:00-13:00網絡開放,其他時間關閉,以及其他IP地址互聯網正常。

以下拓撲圖:

a9d3fd1f4134970adab6ec8d97cad1c8a6865d4f

conf t

interface FastEthernet1/0

 ip address 1.1.1.1 255.255.255.0

 ip access-group net_list1 in

no shut

 interface FastEthernet2/0

 ip address 2.2.2.1 255.255.255.0

no shut

interface FastEthernet3/0

 ip address 3.3.3.1 255.255.255.0

 no shut

======================================================

conf t

time-range time1

 absolute start 08:00 01 January 2006 end 17:00 30 December 2014

 periodic daily 00:00 to 12:00

 periodic daily 13:00 to 17:00

exit

ip access-list extended net_list1

 deny   ip any host 3.3.3.2 time-range time1

 permit ip any any

==============================================

測試:

ip:3.3.3.2  中午12:00-13:00可以訪問互聯網,其他時間關閉。

ping 1.1.1.1   

收藏於 2014-03-25

來自於百度空間


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章