clear ip access-list counters
To clear IP access list counters, use the clear ip access-list counters command in privileged EXEC mode.
clear ip access-list counters [access-list-number | access-list-name]
Syntax Description
access-list-number | access-list-name |
(Optional) Number or name of the IP access list for which to clear the counters. If no name or number is specified, all IP access list counters are cleared. |
Command Modes
Privileged EXEC
Command History
Release |
Modification |
---|---|
11.0 |
This command was introduced. |
Usage Guidelines
The counter counts the number of packets that match each permit or deny statement in an access list. You might clear the counters if you want to start at zero to get a more recent count of the packets that are matching an access list. The show ip access-lists command displays the counters as a number of matches.
Examples
The following example clears the counter for access list 150:
Router# clear ip access-list counters 150