
Operation Manual – ACL
H3C S5600 Series Ethernet Switches
Chapter 1 ACL Configuration
1-16
1.5.2 Advanced ACL Configuration Example
I. Network requirements
Different departments of an enterprise are interconnected through a switch. The IP
address of the wage query server is 192.168.1.2. The R&D department is connected to
GigabitEthernet 1/0/1 of the switch. Apply an ACL to deny requests from the R&D
department and destined for the wage server during the working hours (8:00 to 18:00).
II. Network diagram
Figure 1-4
Network diagram for advanced ACL configuration
III. Configuration procedure
# Define a periodic time range that is active from 8:00 to 18:00 everyday.
<Sysname> system-view
[Sysname] time-range test 8:00 to 18:00 working-day
# Define ACL 3000 to filter packets destined for wage query server.
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 1 deny ip destination 192.168.1.2 0 time-range
test
[Sysname-acl-adv-3000] quit
# Apply ACL 3000 on GigabitEthernet 1/0/1.
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] packet-filter inbound ip-group 3000
1.5.3 Layer 2 ACL Configuration Example
I. Network requirements
PC 1 and PC 2 connect to the switch through GigabitEthernet 1/0/1. PC 1’s MAC
address is 0011-0011-0011. Apply an ACL to filter packets with the source MAC
address of 0011-0011-0011 and the destination MAC address of 0011-0011-0012 from
8:00 to 18:00 everyday.