Command Manual (For Soliton) – ACL
H3C S3100 Series Ethernet Switches
Chapter 1 ACL Configuration Commands
1-10
z
The
link-group acl-number
keyword specifies a Layer 2 ACL. The
acl-number
argument ranges from 4000 to 4999.
z
The
user-group acl-number
keyword specifies an IPv6 ACL. The
acl-number
argument ranges from 5000 to 5999.
z
The
rule rule-id
keyword specifies a rule of an ACL. The
rule
argument ranges
from 0 to 65534. If you do not specify this argument, all the rules of the ACL are
applied.
Description
Use the
packet-filter
command to assign an ACL globally, to a port, or in a port group
to filter inbound packets.
Use the
undo packet-filter
command to cancel the assignment of an ACL.
Examples
# Apply all rules of basic ACL 2000 on Ethernet 1/0/1 to filter inbound packets. Here, it
is assumed that the ACL and its rules are already configured.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] packet-filter inbound ip-group 2000
[Sysname-Ethernet1/0/1] quit
# Apply rule 1 of advanced ACL 3000 and rule 2 of Layer 2 ACL 4000 on Ethernet 1/0/4
to filter inbound packets. Here, it is assumed that the ACLs and their rules are already
configured.
[Sysname] interface Ethernet 1/0/4
[Sysname-Ethernet1/0/4] packet-filter inbound ip-group 3000 rule 1 link-group
4000 rule 2
After completing the above configuration, you can use the
display packet-filter
command to view information about packet filtering.
1.1.10 packet-filter vlan
Syntax
packet-filter
vlan
vlan-id
inbound acl-rule
undo
packet-filter
vlan
vlan-id
inbound acl-rule
View
System view
Parameters
vlan-id
: VLAN ID.