Ipv4 Packet Filtering Configuration Example; Network Requirements; Configuration Procedure - HP 6125G Configuration Manual

Acl and qos configuration guide
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

# Create IPv4 basic ACL 2002, and configure a rule for the ACL to permit only the packets sourced
from 10.1.3.1.
[Switch] acl number 2002
[Switch-acl-basic-2001] rule permit source 10.1.3.1 0
[Switch-acl-basic-2001] quit
# Enable the FTP server on the switch.
[Switch] ftp server enable
# Use ACL 2001 to control FTP clients' access to the FTP server.
[Switch] ftp server acl 2002

IPv4 packet filtering configuration example

Network requirements

As shown in
Device A so that every day from 08:00 to 18:00 the interface allows only packets sourced from Host A
to pass.
Figure 2 Network diagram

Configuration procedure

# Create a time range from 08:00 to 18:00 every day.
<DeviceA> system-view
[DeviceA] time-range study 8:00 to 18:00 daily
# Create IPv4 ACL 2009, and configure two rules in the ACL. One rule permits packets sourced from
Host A and the other denies packets sourced from any other host during the time range study.
[DeviceA] acl number 2009
[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 IPv4 ACL 2009 to filter incoming packets on GigabitEthernet 1/0/1.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] packet-filter 2009 inbound
[DeviceA-GigabitEthernet1/0/1] quit
Figure
2, apply an ACL to the inbound direction of interface GigabitEthernet 1/0/1 on
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

3600 v2 series6125 blade switch series

Table of Contents