![H3C S5120-SI Series Operation Manual Download Page 506](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174506.webp)
3-2
Figure 3-1
Network diagram for applying an ACL to an interface for filtering
Configuration procedure
# Create a time range named
study
, setting it to become active from 08:00 to 18:00 everyday.
<DeviceA> system-view
[DeviceA] time-range study 8:00 to 18:00 daily
# Create basic ACL 2009.
[DeviceA] acl number 2009
# Create a basic ACL rule to deny packets sourced from 192.168.1.2/32 during time range
study
.
[DeviceA-acl-basic-2009] rule deny source 192.168.1.2 0 time-range study
[DeviceA-acl-basic-2009] quit
# Apply ACL 2009 to the inbound direction of interface GigabitEthernet 1/0/1.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] packet-filter 2009 inbound