Rule Remark - HP A8800 Series Command Reference Manual

Acl and qos
Hide thumbs Also See for A8800 Series:
Table of Contents

Advertisement

[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule 0 deny source 1.1.1.1 0
[Sysname-acl-basic-2000] rule 0 comment This rule is used on GE3/1/2.
# Create a rule in IPv6 basic ACL 3000 and configure a description for this rule.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 0 permit tcp source 2030:5060::9050/64
[Sysname-acl6-adv-3000] rule 0 comment This rule is used in GE3/1/1

rule remark

Syntax
rule [ rule-id ] remark text
undo rule [ rule-id ] remark [ text ]
View
IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view,
user-defined ACL view
Default level
2: System level
Parameters
rule-id: Specifies a rule number in the range of 0 to 65534. The specified rule can be one that has been
created or not. If you specify no rule ID when adding a remark, the system automatically picks the rule ID
that is the nearest higher multiple of the numbering step to the current highest rule ID. For example, if the
rule numbering step is 5 and the current highest rule ID is 28, the system picks rule 30.
text: Specifies a remark, a case-sensitive string of 1 to 63 characters.
Description
Use the rule remark command to add a start or end remark for a range of rules that are created for the
same purpose.
Use the undo rule remark command to delete the specified or all rule range remarks.
By default, no rule range remarks are configured.
A rule range remark always appears immediately above the specified rule. If the specified rule has not
been created yet, the position of the comment in the ACL is as follows:
If the match order is config, the remark is inserted into the ACL in descending order of rule ID.
If the match order is auto, the remark is placed at the end of the ACL. After you create the rule, the
remark appears above the rule.
To display rule range remarks in an ACL, use the display this or display current-configuration.
When you delete rule range remarks, follow these guidelines:
If neither rule-id nor text is specified, all rule range remarks are removed.
Use the undo rule remark text command to remove all remarks that are the same as the text
argument.
36

Advertisement

Table of Contents
loading

Table of Contents