1-17
Name
ICMP type
ICMP code
source-quench
Type=4 Code=0
source-route-failed
Type=3 Code=5
timestamp-reply
Type=14 Code=0
timestamp-request
Type=13 Code=0
ttl-exceeded
Type=11 Code=0
Parameters of the undo rule command
rule-id
: Rule ID, which must the ID of an existing ACL rule. You can obtain the ID of an ACL rule by using
the
display acl
command.
source
: Removes the settings concerning the source address in the ACL rule.
source-port
: Removes the settings concerning the source port in the ACL rule. This keyword is only
available to the ACL rules with their protocol types set to TCP or UDP.
destination
: Removes the settings concerning the destination address in the ACL rule.
destination-port
: Removes the settings concerning the destination port in the ACL rule. This keyword
is only available to the ACL rules with their protocol types set to TCP or UDP.
icmp-type
: Removes the settings concerning the ICMP type and message code in the ACL rule. This
keyword is only available to the ACL rules with their protocol type set to ICMP.
precedence
: Removes the precedence-related settings in the ACL rule.
tos
: Removes the ToS-related settings in the ACL rule.
dscp
: Removes the DSCP-related settings in the ACL rule.
time-range
: Removes the time range settings in the ACL rule.
fragment
: Removes the settings concerning non-tail fragments in the ACL rule.
Description
Use the
rule
command to define an ACL rule.
Use the
undo rule
command to remove an ACL rule or specified settings of an ACL rule.
To remove an ACL rule using the
undo rule
command, you need to provide the ID of the ACL rule. If no
other arguments are specified, the entire ACL rule is removed. Otherwise, only the specified information
of the ACL rule is removed.
Note that:
z
With the
config
match order specified for the advanced ACL, you can modify any existent rule. The
unmodified part of the rule remains. With the
auto
match order specified for the ACL, you cannot
modify any existent rule; otherwise the system prompts error information.
z
If you do not specify the
rule-id
argument when creating an ACL rule, the rule will be numbered
automatically. If the ACL has no rules, the rule is numbered 0; otherwise, the number of the rule will
be the greatest rule number plus one. If the current greatest rule number is 65534, however, the
system will display an error message and you need to specify a number for the rule.
z
The content of a modified or created rule cannot be identical with the content of any existing rules;
otherwise the rule modification or creation will fail, and the system prompts that the rule already
exists.