350
Configuring IPv4 packet filtering on an interface
To do...
Command...
Remarks
1.
Enter system view.
system-view
—
2.
Enter interface view.
interface
interface-type interface-
number
—
3.
Configure IPv4 packet filtering
on an interface.
firewall packet-filter
{
acl-number
|
name
acl-name
} {
inbound
|
outbound
}
Required.
IPv4 packets are not filtered by
default.
Configuring IPv6 packet filtering on an interface
IPv6 packet filtering is a basic firewall function of an IPv6-based ACL. configure IPv6 packet filtering in
the inbound or outbound direction of an interface so that the interface filters packets that match the IPv6
ACL rules. apply only one IPv6 ACL to filter packets in one direction of an interface.
To configure IPv6 packet filtering on an interface:
To do...
Command...
Remarks
1.
Enter system view.
system-view
—
2.
Enter interface view.
interface
interface-type
interface-
number
—
3.
Configure IPv6 packet filtering
on an interface.
firewall packet-filter ipv6
{
acl6-
number
|
name
acl6-name
} {
inbound
|
outbound
}
Required.
IPv6 packets are not filtered by
default.
Displaying and maintaining a packet filtering firewall
To do...
Command...
Remarks
View the packet filtering statistics
of the IPv4 firewall
display firewall-statistics
{
all
|
interface
interface-type
interface-
number
} [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
View the packet filtering statistics
of the IPv6 firewall
display firewall ipv6 statistics
{
all
|
interface
interface-type
interface-number
} [
|
{
begin
|
exclude
|
include
}
regular-
expression
]
Available in any view
Clear the packet filtering statistics
of the IPv4 firewall
reset
firewall-statistics
{
all
|
interface
interface-type
interface-
number
}
Available in user view
Clear the packet filtering statistics
of the IPv6 firewall
reset
firewall ipv6 statistics
{
all
|
interface
interface-type
interface-
number
}
Available in user view