Configuration procedure
# Define a periodic time range that is active from 8:00 to 18:00 everyday.
2000
a switch. The IP address of the wage
thernet 1/0/1 of the switch. Apply an
he wage server during the working
ours (8:00 to 18:00).
<Sysname> system-view
[Sysname] time-range test 8:00 to 18:00 daily
# Define ACL 2000 to filter packets with the source IP address of 10.1.1.1.
[Sysname] acl number
[Sysname-acl-basic-2000] rule 1 deny source 10.1.1.1 0 time-range test
[Sysname-acl-basic-2000] quit
# Apply ACL 2000 on Ethernet 1/0/1.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] packet-filter inbound ip-group 2000
Advanced ACL Configuration Example
Network requirements
Different departments of an enterprise are interconnected through
query server is 192.168.1.2. The R&D department is connected to E
ACL to deny requests from the R&D department and destined for t
h
Network diagram
Figure 44-4
Network diagram for advanced ACL configuration
range that is active from 8:00 to 18:00 everyday.
er.
[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 Ethernet 1/0/1.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] packet-filter inbound ip-group 3000
Configuration procedure
# Define a periodic time
<Sysname> system-view
[Sysname] time-range test 8:00 to 18:00 working-day
# Define ACL 3000 to filter packets destined for wage query serv
44-16