CLI Reference Guide ACL Configuration Commands
ip access-list counter
Use this command to enable the packet matching counter for all ACEs under the standard and
extended IP ACL. Use the no form of this command to disable the function.
ip access-list counter { id | name }
no ip access-list counter { id | name }
Number of the IP ACL. The standard IP ACL number ranges from 1 to
99, and from 1300 to 1999, and the extended IP ACL ranges from
100 to 199, and from 2000 to 2699.
Global configuration mode
Use the show access-lists command to view the setting of ACL.
Example 1 enables the packet counter for the standard ACL:
Ruijie(config)# ip access-list counter std-acl
Ruijie(config-std-nacl)# show access-lists
ip access-list standard std-acl
10 permit 195.168.6.0 0.0.0.255 (999 matches)
20 deny host 5.5.5.5 time-range tm (2000 matches)
Example 2 disables the packet counter for the standard ACL:
Ruijie(config)#no ip access-list counter std-acl
Ruijie(config-std-nacl)# show access-lists
ip access-list standard std-acl
10 permit 195.168.6.0 0.0.0.255
20 deny host 5.5.5.5 time-range tm
This command is supported only in 10.4 (3b16), 10.4 (3b17), 10.4 (5b1) and later versions.