HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Command Refere - Page 36

rule remark

Page 36 highlights

rule remark Syntax rule [ rule-id ] remark text View undo rule [ rule-id ] remark [ text ] IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header 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 rule remark to add a start or end remark for a range of rules that are created for the same purpose. Use undo rule remark to delete a rule range remark. 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. • Use the undo rule rule-id remark command to delete a specific rule range remark. If you also specify the text argument, you must type in the remark the same as was specified to successfully remove the remark. TIP: When adding an end remark for a rule range, you can specify the end rule number plus 1 for the rule-id argument so all rules in this range appears between the two remarks. You can also specify the end rule number for the rule-id argument. In this approach, the end rule appears below the end remark. Whichever approach you use, be consistent. Related commands: display this, display current-configuration (Fundamentals Command Reference). Examples # Display the running configuration of IPv4 basic ACL 2000. 31

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104

31
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
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
rule remark
to add a start or end remark for a range of rules that are created for the same purpose.
Use
undo rule remark
to delete a rule range remark.
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.
Use the
undo rule
rule-id
remark
command to delete a specific rule range remark. If you also
specify the
text
argument, you must type in the remark the same as was specified to successfully
remove the remark.
TIP:
When adding an end remark for a rule range, you can specify the end rule number plus 1 for the
rule-id
argument so all rules in this range appears between the two remarks. You can also specify the end rule
number for the
rule-id
argument. In this approach, the end rule appears below the end remark. Whichever
approach you use, be consistent.
Related commands:
display this
,
display current-configuration
(
Fundamentals Command Reference
).
Examples
# Display the running configuration of IPv4 basic ACL 2000.