Use this command to enter access list configuration mode for a L2 ACL.
name | Specifies a L2 ACL name. |
None.
Configuration command, Global configuration.
The l2 access-list command enters the rule configuration command mode for the specified L2 ACL.
A L2 ACL MIB is not supported.
L2 ACL names must start with an alpha character. A name may be quoted, as the quotes are stripped, but spaces are not supported within the quoted string. A name cannot be one of the show access-lists keywords brief or applied, or any prefix thereof such as ?br? or ?app?. Names can be up to 64 characters in length.
Restrictions defined by an access list are applied by using the l2 access-group command (l2 access-group).
Note
An "implicit deny" is hard coded at the end of all ACLs. The implicit deny blocks anything not explicitly permitted within the ACL, including routing protocols and management connections.The “no” form of this command removes the specified access list.
This example creates the layer 2 access list list1, if it does not already exist, and enters layer 2 access list list1 configuration mode:
System(rw-config)->l2 access-list list1 System(rw-cfg-l2-acl-list1)->