H3C S3100-52P Operation Manual page 528

Hide thumbs Also See for S3100-52P:
Table of Contents

Advertisement

Operation Manual – ACL
H3C S3100-52P Ethernet Switch
Define an ACL rule
Define a comment for
the ACL rule
Define a description for
the ACL
Note:
When configuring a rule that matches specific fields of packets, take the following two
items into account:
If VLAN-VPN is not enabled, each packet in the switch carries one VLAN tag, which
is 4 bytes long.
If VLAN-VPN is enabled on a port, each packet in the switch carries two VLAN tags,
which is 8 bytes long.
Note that:
You can modify any existent rule of a user-defined ACL. If you modify only the time
range and/or action, the unmodified parts of the rule remain the same. If you
modify the rule-string rule-mask offset combinations, however, the new
combinations will replace all of the original ones.
If you do not specify the rule-id argument when creating an ACL rule, the rule will
be numbered automatically. If the ACL has no rules, the rule is numbered 0;
otherwise, the number of the rule will be the greatest rule number plus one. If the
current greatest rule number is 65534, however, the system will display an error
message and you need to specify a number for the rule.
The content of a modified or created rule cannot be identical with the content of
any existing rules; otherwise the rule modification or creation will fail, and the
system prompts that the rule already exists.
III. Configuration example
# Configure ACL 5000 to deny all TCP packets, provided that VLAN-VPN is not enabled
on any port. In the ACL rule, 06 is the TCP protocol number, ff is the mask of the rule,
and 27 is the protocol field offset of an internally processed IP packet.
<Sysname> system-view
[Sysname] acl number 5000
[Sysname-acl-user-5000] rule deny 06 ff 27
To do...
rule [ rule-id ] { permit |
deny } [ rule-string rule-mask
offset ] &<1-8> [ time-range
time-name ]
rule rule-id comment text
description text
Use the command...
1-11
Chapter 1 ACL Configuration
Remarks
Required
For information about
rule-string, refer to ACL
Commands.
Optional
No description by default
Optional
No description by default

Advertisement

Table of Contents
loading

Table of Contents