Co
Follo
s to define an advanced ACL rule:
nfiguration procedure
w these step
To do...
Use the command...
Remarks
Enter system view
system-view
—
Cr
enter a
eate an advanced ACL and
dvanced ACL view
acl number
acl-number
[
match-order
{
auto
|
config
} ]
Required
config
by default
Define an ACL rule
rule
[
rule-id
] {
permit
|
deny
}
protocol
[
rule-string
]
Required
For information about
protocol
and
rule-string
, refer to
ACL
Commands
.
Assign a description string to
ACL rule
rule
rule-id
comment
text
Optional
No description by default
the
As
scription string to
Optional
sign a de
the ACL
description
text
No description by default
the ACL, you cannot
le; otherwise the system will tell you that the rule cannot be modified.
id
argument when creating an ACL rule, the rule will be numbered
f the current greatest rule number is 65534, however, the
d 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;
will fail, and the system prompts that the rule already
eated with the
auto
keyword specified, the newly created rules will be inserted in the
Configuration example
ermit the TCP packets sourced from the network 129.9.0.0/16 and destined
[Sysname-acl-adv-3000] rule permit tcp source 129.9.0.0 0.0.255.255 destination 202.38.160.0
eq 80
[Sys
Acl'
urce 129.9.0.0 0.0.255.255 destination 202.38.160.0 0.0.0.255
destination-port eq www
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
modify any existent ru
z
If you do not specify the
rule-
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. I
system will tell you that the rule cannot be create
otherwise the rule modification or creation
exists.
z
If the ACL is cr
existent ones by depth-first principle, but the numbers of the existent rules are unaltered.
# Configure ACL 3000 to p
for the network 202.38.160.0/24 and with the destination port number being 80.
<Sysname> system-view
[Sysname] acl number 3000
0.0.0.255 destination-port
# Display the configuration information of ACL 3000.
name-acl-adv-3000] display acl 3000
Advanced ACL 3000, 1 rule
s step is 1
rule 0 permit tcp so
44-7