show access-lists l2

Use this command to display configured L2 ACL configuration.

Syntax

show access-lists [name] l2 [brief]

Parameters

name (Optional) Displays access list information for a specific access list name.
brief (Optional) Displays a summary version of the specified context.

Defaults

  • If an L2 ACL name is not specified, the entire table of access lists will be displayed.
  • If the brief option is not specified, a detailed level of information is displayed.

Mode

All command modes.

Examples

This example shows how to display a summary level information for L2 ACLs configured on the device:

System(rw-config)->show access-lists l2 brief
L2 Access List (last 49 chars)                    Type Ents Deny count
------------------------------------------------- ---- ---- --------------------
l2acl                                             l2    11  6

This example shows how to display a detailed level of information for L2 ACLs configured on the device:

System(rw-config)->show access-lists l2
L2 access list l2acl  (11 entries)  (6 deny hits)
  1 deny   host 0001.0700.0305  any log
  2 permit any  any dei log
  3 permit host 0001.0700.0300  any log
  4 deny   host 0001.0700.0301  any log
  5 deny   host 0001.0700.0302  any log
  6 deny   host 0001.0700.0306  any log
  7 deny   host 0001.0700.0307  any log
  8 deny   host 0001.0700.0308  any log
  9 deny   host 0001.0700.0303  any log
  10 deny   host 0001.0700.0304  any log
  -- implicit deny all --   log  (6 hits)
System(rw-config)->