明确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 thecount
keyword.
Command context
Operator (>
) or Manager (#
)
Parameters
-
all
-
Selects all ACLs.
-
ip|ipv6|mac
-
指定了ACL类型:
ip
for IPv4,ipv6
for IPv6, ormac
for 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.
-
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.
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