Rule (User-Defined Acl) - Huawei Quidway S3900 series Command Manual

Hide thumbs Also See for Quidway S3900 series:
Table of Contents

Advertisement

Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510
2)
Parameters of the undo rule command:
rule-id: Rule ID, which must the ID of an existing ACL rule.
Description
Use the rule command to define an ACL rule.
Use the undo rule command to delete an ACL rule.
Before you can delete a rule, you must specify the rule ID. If you do not know the rule
ID, you can view it by using the display acl command.
In the case that you specify the rule ID when defining a rule:
If the rule corresponding to the specified rule ID already exists, you will edit the
rule, and the modified part in the rule will replace the original content, while other
parts remain unchanged.
If the rule corresponding to the specified rule ID does not exists, you will create
and define a new rule.
The content of a modified or created rule must not be identical with the content of
any existing rule; otherwise the rule modification or creation will fail, and the
system will prompt that the rule already exists.
If you do not specify a rule ID, you will create and define a new rule, and the system
will assign an ID for the rule automatically.
Example
# Define a rule to deny packets whose 802.1p priority is 3.
<Quidway> system-view
[Quidway] acl number 4000
[Quidway-acl-ethernetframe-4000] rule deny cos 3

1.1.10 rule (user-defined ACL)

Syntax
rule [ rule-id ] { permit | deny } [ rule-string rule-mask offset ] &<1-8> [ time-range
name ]
undo rule rule-id
View
User-defined ACL view
Parameter
rule-string: User-defined string of the rule. It must be an even number containing 2 to
160 hexadecimal characters.
Huawei Technologies Proprietary
1-16
Chapter 1 ACL Commands

Hide quick links:

Advertisement

Chapters

Table of Contents
loading

Table of Contents