The rule description command configures the description of an ACL rule.
The undo rule description command deletes the description of an ACL rule.
By default, no description is configured for an ACL rule.
Parameter |
Description |
Value |
---|---|---|
rule-id |
Specifies the ID of an ACL rule. |
The value must be an rule-id. |
description description |
Specifies the description of an ACL rule. You can configure the description to record an ACL rule in detail. |
The value is a character string and contains a maximum of 127 characters. |
Application Scenarios
The rule-id parameter identifies a rule, but cannot describe the meaning and usage of the rule. The description with a character string can be used to solve the problem.
Prerequisites
The ACL rule has been created. If the ACL rule does not exist, the system displays an error message when you run this command.
Precautions
If the rule description command is run repeatedly, the latest configuration takes effect.
After you run the undo rule rule-id command, the rule and rule description are deleted.
# Configure the description for rule 5 in acl 2001, which permits the packets from 192.168.32.1.
<HUAWEI> system-view [HUAWEI] acl 2001 [HUAWEI-acl-basic-2001] rule 5 permit source 192.168.32.1 0 [HUAWEI-acl-basic-2001] rule 5 description permit 192.168.32.1 [HUAWEI-acl-basic-2001] display acl 2001 Basic ACL 2001, 1 rule Acl's step is 5 rule 5 permit source 192.168.32.1 0 rule 5 description permit 192.168.32.1