Switch 7700 Command reference Guide, v2.0

Table Of Contents
ACL Configuration Command List 271
all ( for the undo command): Configures to delete all the ACLs (including
numbered and named ACLs).
Description
Use the acl command to configure a numbered or named ACL, and enter the
corresponding ACL view.
Use the undo acl command to cancel all the rules of a numbered or named
ACL or all the ACLs.
By default, the ACLs are matched in config order.
You can use the acl command to create an ACL and specify its name with
acl-name” and its type with the keywords “advanced”, ”basic”, ”interface”,
or ”
link”. For both numbered and named ACL, you can use the rule command to
add rules for them after entering ACL view. (Use the
quit command to exit ACL
view.) An ACL may contain multiple rules and the traffic classification rules
concern different ranges, which brings forward the issue of match order when a
data packet matches more than one rule.
Use the match-order command to configure to follow the user configuration
order (as defaulted) or depth-first order (matching the rule with smaller range first)
to match the rules. After specified the match order of an ACL, you cannot change
it, unless delete all its rules and specify the order again. Note that, the match order
user defined can only be effective to the data treated by the software of the
switch.
For related configurations, refer to the command rule.
Example
Configure to follow depth-first order to match the rules of ACL 1.
[SW7700]acl number 1 match-order auto
acl mode Syntax
acl mode { ip-based | link-based }
undo acl mode
View
System view
Parameter
ip-based: Configures to use L3 traffic classification rules. In this case only L3 rules
take effect.
link-based: Configures to use L2 traffic classification rules. In this case only L2
rules take effect.
Description
Use the acl mode command to select the acl mode used by the switch
between L2 and L3 traffic rules.
Use the undo acl mode command to restore the acl mode used by the switch.