16-2
Filtering IPv6 Packets
Follow these steps to apply an IPv6 ACL to an interface to filter IPv6 packets:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet
interface view
interface interface-type
interface-number
Enter
interface
view
Enter VLAN interface
view
interface vlan-interface vlan-id
Use either command
Apply a basic or advanced IPv6 ACL
to the interface to filter IPv6 packets
packet-filter ipv6
{
acl6-number
|
name
acl6-name
} {
inbound
|
outbound
}
Required
By default, no IPv6 ACL
is applied to the
interface.
Configuring Packet Filtering Statistics Function
The Switch 4510G series switches provide the packet filtering statistics function so that the device can
output packet filtering statistics information at a specified interval. With the output, you are able to
know how many packets are filtered by which ACL rules.
The packet filtering statistics function takes effect for only rules with the
logging
keyword specified.
z
The packet filtering statistics are managed and output as device log information by the information
center.
z
The packet filtering statistics are of the severity level of 6, that is, informational. Informational
messages are not output to the console by default; therefore, you need to modify the log
information output rule for the informational message output to be sent to the console or other
destinations.
z
For introduction and configuration of the information center, refer to
Information Center
Configuration
in the
System Volume
.
Follow the steps to set the intervals for packet filtering statistics so that the device outputs packet
filtering statistics at the end of every interval:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Set the interval for IPv4 packet
filtering statistics
acl logging frequence
frequence
Set the interval for IPv6 packet
filtering statistics
acl ipv6 logging frequence
frequence
Configure a command as
required.
0 by default, which means no
packet filtering statistics is
collected.