Ipv4 Packet Filtering Configuration Example; Ipv6 Packet Filtering Configuration Example - HP 5830 Series Configuration Manual

Acl and qos
Hide thumbs Also See for 5830 Series:
Table of Contents

Advertisement

IPv4 packet filtering configuration example

Network requirements
As shown in
Device A so that every day, from 8:00 to 18:00, the interface allows only packets sourced from Host A
to pass.
Figure 1 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 basic 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
# Configure the device to output informational log messages to the console.
[DeviceA] info-center source default channel 0 log level informational
# Apply IPv4 basic 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

IPv6 packet filtering configuration example

Network requirements
As shown in
every day, from 8:00 to 18:00, the interface allows only packets from Host A to pass through. Configure
Figure
1, apply an ACL to the inbound direction of interface GigabitEthernet 1/0/1 on
Figure
2, apply an ACL to the incoming traffic of GigabitEthernet 1/0/1 on Device A so that
12

Advertisement

Table of Contents
loading

Table of Contents