43
Figure 13 Network diagram
Configuration procedure
# Create a periodic time range from 8:00 to 18:00 on working days from June 2015 to the end of the
year.
<AC> system-view
[AC] time-range work 8:0 to 18:0 working-day from 0:0 6/1/2015 to 24:0 12/31/2015
# Create an IPv4 basic ACL numbered 2001, and configure a rule in the ACL to permit packets only
from 192.168.1.2/32 during the time range
work
.
[AC] acl basic 2001
[AC-acl-ipv4-basic-2001] rule permit source 192.168.1.2 0 time-range work
[AC-acl-ipv4-basic-2001] rule deny source any time-range work
[AC-acl-ipv4-basic-2001] quit
# Apply IPv4 basic ACL 2001 to filter outgoing packets on interface GigabitEthernet 1/0/1.
[AC] interface gigabitEthernet 1/0/1
[AC-GigabitEthernet1/0/1] packet-filter 2001 outbound
[AC-GigabitEthernet1/0/1] quit
Verifying the configuration
# Display time range configuration and status on the AC.
[AC] display time-range all
Current time is 09:40:55 5/26/2015 Tuesday
Time-range : work ( Active )
08:00 to 18:00 working-day
from 00:00 6/1/2011 to 00:00 1/1/2012
The output shows that the time range
work
is active.
AC
GE 1/0/1
Server
192.168.0.100
IP network
AP 1
AP 2
Client 1
192.168.1.2
Client 2
192.168.1.3