l2 access-group

Use this command to apply L2 access restrictions to inbound or outbound frames on an interface.

Syntax

l2 access-group name {in | out}
no l2 access-group name {in | out}

Parameters

name Specifies the L2 ACL to be applied to the access group. This is an alpha-numeric text name of up to 64 characters.
in Filters inbound frames.
out Filters outbound frames.

Defaults

None.

Mode

Configuration command, Interface configuration.

Usage

L2 ACLs must be applied per VLAN interface. An L2 ACL can either be applied to inbound or outbound frames. An L2 ACL can be applied before it is created. The uncreated applied L2 ACL will have no affect.

The “no” form of this command removes the specified L2 ACL from the access group.

Example

This example shows how to apply L2 ACL list1 for all inbound frames on VLAN 1:

System(rw-config)->interface vlan 1
System(rw-config-intf-vlan.0.1)->l2 access-group list1 in