明确access-list hitcounts

Syntax

明确access-list hitcounts { all | [{ip|ipv6|mac}] [interface| vlan< vlan id >] [in|out|routed-in|routed-out] }

Description

Clears the hit counts for ACLs with ACEs that include thecountkeyword.

Command context

Operator (>) or Manager (#)

Parameters

all

Selects all ACLs.

ip|ipv6|mac

指定了ACL类型:ipfor IPv4,ipv6for IPv6, ormacfor MAC.

Specifies the ACL name.

interface

Specifies the interface name (port or LAG).

vlan< vlan id >

Specifies the VLAN.

in|out

Selects the traffic direction on which the ACL is applied.

  • inselects the inbound (ingress) traffic direction.

  • outselects the outbound (egress) traffic direction. Available for IPv4 and IPv6 ACLs applied to VLANs and for IPv4 ACLs applied to route-only ports. Not available for ACLs applied to either IPv4 bridged ports or IPv6 ports, or for MAC ACLs applied to ports or VLANS.

routed-in|routed-out
Selects the routed traffic direction on which the ACL is applied.
NOTE:

This is only available for IPv4 and IPv6 ACLs applied to interface VLANs.

  • routed-inselects the routed inbound (routed ingress) traffic direction.

  • routed-outselects the routed outbound (routed egress) traffic direction.

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Examples

Clearing the hit counts for My_ip_ACL applied to port 1/1/2 (egress):

switch#明确access-list hitcounts ip My_ip_ACL interface 1/1/2 out

Clearing the hit counts for My_ip_ACL applied to VLAN 10 (ingress):

switch#明确access-list hitcounts ip My_ip_ACL vlan 10 in

Clearing the hit counts for all ACLs:

switch#明确access-list hitcounts all