clear access-list ipv4
To clear IPv4 access list counters, use the clear access-list ipv4 command in EXEC mode.
clear access-list ipv4 access-list name [ sequence-number | hardware { ingress | egress}] [interface type interface-path-id] [ location node-id | sequence number ]
Syntax Description
access-list-name | Name of a particular IPv4 access list. The name cannot contain a spaces or quotation marks, but can include numbers. | ||
sequence-number | [Optional] Specific sequence number with which counters are cleared for an access list. Range is 1 to 2147483644 . | ||
hardware | Identifies the access list as an access group for an interface. | ||
ingress | Specifies an inbound direction. | ||
egress | Specifies an outbound direction. | ||
interface | [Optional] Clears the interface statistics. | ||
type | Interface type. For more information, use the question mark [?] online help function. | ||
interface-path-id | Physical interface or virtual interface.
For more information about the syntax for the router, use the question mark [?] online help function. | ||
location node-id | [Optional] Clears hardware resource counters from the designated node. The node-id argument is entered in the rack/slot/module notation. | ||
sequence number | [Optional] Clears counters for an access list with a specific sequence number. Range is 1 to 2147483644 . |
Which command would you use to apply an access list to a router interface?
A. ip access-list 101 out
B. access-list ip 101 in
C. ip access-group 101 in
D. access-group ip 101 in
Answer: Option C