H3C S6550X-HI Series Command Reference Manual page 2151

Table of Contents

Advertisement

rule comment
Use
rule comment
Use
undo rule comment
Syntax
rule rule-id comment text
undo rule rule-id comment
Default
A rule does not have a comment.
Views
IPv4 basic/advanced ACL view
IPv6 basic/advanced ACL view
Layer 2 ACL view
User-defined ACL view
Predefined user roles
network-admin
Parameters
: Specifies an ACL rule ID in the range of 0 to 65534. The ACL rule must already exist.
rule-id
: Specifies a comment about the ACL rule, a case-sensitive string of 1 to 127 characters.
text
Usage guidelines
This command adds a comment to a rule if the rule does not have a comment. It modifies the
comment for a rule if the rule already has a comment.
Examples
# Create a rule for IPv4 basic ACL 2000, and add a comment about the rule.
<Sysname> system-view
[Sysname] acl basic 2000
[Sysname-acl-ipv4-basic-2000] rule 0 deny source 1.1.1.1 0
[Sysname-acl-ipv4-basic-2000] rule 0 comment This rule is used on twenty-fivegige 1/0/1.
Related commands
display acl
step
Use
to set a rule numbering step for an ACL.
step
Use
undo step
Syntax
step step-value [ start start-value ]
undo step
Default
The rule numbering step is 5, and the start rule ID is 5.
to configure a comment for an ACL rule.
to delete an ACL rule comment.
to restore the default.
27

Advertisement

Table of Contents
loading

Table of Contents