<Sysname> system-view
[Sysname] time-range test 8:00 to 18:00 daily
d configure a rule for the ACL, denying packets from 3001::1/64 to 3002::1/64.
port Ethernet 1/0/1.
ct to the switch through Ethernet 1/0/1, Ethernet
of the database server is 192.168.1.2. Apply an
abase server from 8:00 to 18:00 in working days.
# Create an IPv6 ACL an
[Sysname] acl number 5000
[Sysname-acl-user-5000] rule deny src-ip 3001::1 64 dest-ip 3002::1 64 time-range test
[Sysname-acl-user-5000] quit
# Apply the ACL to
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] packet-filter inbound user-group 5000
Example for Applying an ACL to a VLAN
Network requirements
PC 1, PC 2 and PC 3 belong to VLAN 10 and conne
1/0/2 and Ethernet 1/0/3 respectively. The IP address
ACL to deny packets from PCs in VLAN 10 to the dat
Network diagram
Figure 44-8
Network diagram for applying an ACL to a VLAN
C
# Define a periodic time range that is active from 8:00 to 18:00 in working days.
<Sysname> system-view
[Sysname] time-range test 8:00 to 18:00 working-day
# Define an ACL to deny packets destined for the database 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 to VLAN 10.
[Sysname] packet-filter vlan 10 inbound ip-group 3000
onfiguration procedure
44-19