Creating an IPv4 ACL rule enabled for counter statistics

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

  1. Enter configure terminal to access global configuration mode.
    device# configure terminal
    
  2. Enter the ip access-list command to create or modify an access list.
    device(config)# ip access-list standard stdACL3
    
  3. For each ACL rule for which you need to display statistics, include the count keyword.
    device(conf-ipacl-std)# seq 5 permit host 10.20.33.4 count
    device(config-ipacl-std)# seq 15 deny any count
  4. If you have not yet applied the ACL to the appropriate interface, do so now.