Creating MAC ACL rules enabled for counter statistics

When you create ACL rules, the count parameter enables you to display counter statistics.

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the mac access-list command to create or modify an access list.
    device(config)# mac access-list standard mac_acl_1
  3. In each rule for which you need to display statistics, include the count keyword.
    device(conf-mac1-std)# seq 100 deny 0022.3333.4444 count
  4. If you have not yet applied the ACL to the appropriate interface, do so now.
  5. (Optional) To display ACL counter statistics, enter the show statistics access-list command.