l2 access-list

Use this command to enter access list configuration mode for a L2 ACL.

Syntax

l2 access-list name
no l2 access-list name

Parameters

name Specifies a L2 ACL name.

Defaults

None.

Mode

Configuration command, Global configuration.

Usage

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

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.

Example

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)->