Command Manual (For Soliton) – ACL
H3C S3100 Series Ethernet Switches
Chapter 1 ACL Configuration Commands
1-27
<Sysname> system-view
[Sysname] acl number 5000
[Sysname-acl-user-5000] rule deny src-ip 3001::1 64 dest-ip 3002::1 64
1.1.15 rule comment
Syntax
rule
rule-id
comment
text
undo
rule
rule-id
comment
View
Advanced ACL view, Layer 2 ACL view, IPv6 ACL view
Parameters
rule-id
: ID of the ACL rule, in the range of 0 to 65534.
text
: Comment for the ACL rule, a string of 1 to 127 characters. Blank spaces and
special characters are acceptable.
Description
Use the
rule
comment
command to define a comment for the ACL rule.
Use the
undo
rule
comment
command to remove the comment defined for the ACL
rule.
You can give rules comments to provide relevant information such as their application
purposes and the ports they are applied to, so that you can easily identity and
distinguish ACL rules by their comments.
By default, an ACL rule has no comment.
Before defining a comment for an ACL rule, make sure that the ACL rule exists.
Examples
# Define the comment “This rule is to be applied to Ethernet 1/0/1” for rule 0 of
advanced ACL 3001.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl number 3001
[Sysname-acl-adv-3001] rule 0 comment This rule is to be applied to Ethernet
1/0/1
# Use the
display acl
command to view the configuration information of advanced ACL
3001.
[Sysname-acl-adv-3001] display acl 3001
Advanced ACL 3001, 1 rule