32
Default
No Layer 2 ACL rules exist.
Views
Layer 2 ACL view
Predefined user roles
network-admin
Parameters
rule-id: Specifies a rule ID in the range of 0 to 65534. If you do not specify a rule ID when creating an
ACL rule, the system automatically assigns it a rule ID. This rule ID is the nearest higher multiple of
the numbering step to the current highest rule ID, starting from 0. For example, if the rule numbering
step is 5 and the current highest rule ID is 28, the rule is numbered 30.
deny: Denies matching packets.
permit: Allows matching packets to pass.
cos dot1p: Matches an 802.1p priority. The 802.1p priority can be specified by one of the following
values:
• A priority number in the range of 0 to 7.
• A priority name: best-effort (0), background (1), spare (2), excellent-effort (3),
controlled-load (4), video (5), voice (6), or network-management (7).
counting: Counts the times that the rule is matched. If you do not specify this keyword, matches for
the rule are not counted.
dest-mac dest-address dest-mask: Matches a destination MAC address range. The dest-address
and dest-mask arguments represent a destination MAC address and mask in the H-H-H format.
lsap lsap-type lsap-type-mask: Matches the DSAP and SSAP fields in LLC encapsulation. The
lsap-type argument is a hexadecimal number that represents the encapsulation format. The value
range for the lsap-type argument is 0 to ffff. The lsap-type-mask argument is a hexadecimal number
that represents the LSAP mask. The value range for the lsap-type-mask argument is 0 to ffff.
type protocol-type protocol-type-mask: Matches one or more protocols in Layer 2 encapsulation.
The protocol-type argument is a hexadecimal number that represents a protocol type in Ethernet_II
and Ethernet_SNAP frames. The value range for the protocol-type argument is 0 to ffff. The
protocol-type-mask argument is a hexadecimal number that represents a protocol type mask. The
value range for the protocol-type-mask argument is 0 to ffff.
source-mac source-address source-mask: Matches a source MAC address range. The
source-address argument represents a source MAC address, and the sour-mask argument
represents a mask in the H-H-H format.
time-range ti
me-range-name: Specifies a time range for the rule. The time-range-name argument is
a case-insensitive string of 1 to 32 characters. It must start with an English letter. If the time range is
not configured, the system creates the rule. However, the rule using the time range can take effect
only after you configure the time range. For more information about time range, see ACL and QoS
Configuration Guide.
Usage guidelines
Within an ACL, the permit or deny statement of each rule must be unique. If the rule you are creating
or editing has the same deny or permit statement as another rule in the ACL, the rule will not be
created or changed.
You can edit ACL rules only when the match order is config.
To view the existing Layer 2 ACL rules, use the display acl mac all command.
The rule ID is required in the undo rule rule-id command.