H3C S5120-SI Series Command Reference Manual page 585

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

ICMP message name
source-route-failed
timestamp-reply
timestamp-request
ttl-exceeded
Description
Use the rule command to create or edit an advanced ACL rule.
Use the undo rule command to delete an entire advanced ACL rule or some attributes in the rule.
By default, an advanced ACL does not contain any rule.
If you specify no optional keywords, the undo rule command removes the entire ACL rule; otherwise,
the command removes only the specified criteria. Before performing the undo rule command, you may
use the display acl command to view the ID of the rule.
When defining ACL rules, you do not need to assign them IDs; the system can automatically assign rule
IDs starting with 0 and increasing in certain rule numbering steps. A rule ID thus assigned is the smallest
multiple of the step that is bigger than the current biggest number. For example, if the rule numbering
step is 5 and the current highest rule ID is 28, the next rule will be numbered 30.
You cannot create a rule with, or modify a rule to have, the same permit/deny statement as an existing
rule in the ACL.
You can only modify the existing rules of an ACL that uses the match order of config. When modifying a
rule of such an ACL, you may choose to change just some of the settings, in which case the other
settings remain the same.
When the ACL match order is auto, a newly created rule will be inserted among the existing rules in the
depth-first match order. Note that the IDs of the rules still remain the same.
If the ACL match order is auto, rules are displayed in the depth-first match order rather than by rule
number.
For a basic ACL rule to be referenced by a QoS policy for traffic classification, the logging keyword is
not supported.
Related commands: display acl.
Examples
# Create a rule to permit TCP packets with the destination port of 80 from 129.9.0.0 to 202.38.160.0.
<Sysname> system-view
[Sysname] acl number 3101
[Sysname-acl-adv-3101] rule permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0
0.0.0.255 destination-port eq 80
Type
3
14
13
11
1-12
Code
5
0
0
0

Advertisement

Table of Contents
loading

Table of Contents