The undo rule command deletes an ACL rule in the Layer ACL view.
By default, no Layer 2 ACL rule is created and no description is configured for an ACL rule.
Parameter | Description | Value |
---|---|---|
rule-id |
Specifies the ID of an ACL rule. |
The value is an integer ranging from 0 to 4294967294. |
time-range |
Specifies a time range during which an ACL rule takes effect. |
- |
type |
Matches packets based on a Layer 2 protocol type. |
- |
source-mac |
Specifies a source MAC address. |
- |
destination-mac |
Specifies a destination MAC address. |
- |
description |
Specify rule description. |
- |
8021p |
Specifies the 802.1p priority in an inner VLAN tag. |
- |
cvlan-8021p |
Specifies the 802.1p priority in an inner VLAN tag. |
- |
Usage Scenario
Run the rule description command to configure a description for an ACL in any of the following situations:
Prerequisites
An ACL rule has been created using the rule command.
Precautions
If the description of an ACL rule is not configured, the ACL rule may be misunderstood or misused.
<HUAWEI> system-view [~HUAWEI] acl number 4999 [*HUAWEI-acl-L2-4999] rule 23 permit destination-mac 0-0-1 source-mac 0-0-2 type 0x0800 [*HUAWEI-acl-L2-4999] rule 23 description This rule is used to filter packets according to the MAC address and protocol type. [*HUAWEI-acl-L2-4999] undo rule 23 description