H3C S5500-SI Series Operation Manual page 793

Hide thumbs Also See for S5500-SI Series:
Table of Contents

Advertisement

[DeviceA] acl number 2009
# Create a basic IPv4 ACL rule to deny packets sourced from 192.168.1.2/32 during time range study.
[DeviceA-acl-basic-2009] rule permit source 192.168.1.2 0 time-range study
[DeviceA-acl-basic-2009] rule deny source any 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
Applying an ACL to a VLAN Interface
Network requirements
As shown in
Figure
from Host A to Server from 14:00 to 18:00 during working days without affecting communication
between Host A and Host B.
Figure 4-2 Network diagram for applying an ACL to a VLAN interface
Host A
192.168.1.2
Vlan-int100
192.168.1.1
Host B
192.168.1.3
Configuration procedure
# Create a time range named study, setting it to become active from 14:00 to 18:00 on working days.
<DeviceA> system-view
[DeviceA] time-range study 14:00 to 18:00 working-day
# Create basic IPv4 ACL2010.
[DeviceA] acl number 2010
# Create a basic IPv4 ACL rule to deny packets sourced from 192.168.1.2/32 during time range study.
[DeviceA-acl-basic-2010] rule deny source 192.168.1.2 0 time-range study
[DeviceA-acl-basic-2010] quit
# Apply ACL 2010 to the inbound direction of Vlan-interface 100.
[DeviceA] interface vlan-interface 100
[DeviceA-Vlan-interface100] packet-filter 2010 inbound
4-2, configure packet filtering on Vlan-interface 100 on Device A to deny packets
Server
192.168.5.100
4-4

Advertisement

Chapters

Table of Contents
loading

Table of Contents