enable accounting (ACL)
-
- Last UpdatedJul 01, 2024
- 1 minute read
Enables accounting for MAC ACLs at Layer 2, IPv4 ACLs, or IPv6 ACLs.
By default, accounting is not enabled.
name
| Designates ACL name for which accounting is to be enabled or disabled.
|
access-list configuration sub-mode (IPv4, IPv6, MAC)
The no form of the command disables accounting for the specified MAC ACL.
The following example creates an IPv6 access-list and enables accounting.
device# configure terminal
device(config)# ipv6 access-list aclv6log
device(config-ipv6-access-list aclv6log)# enable accounting
device(config-ipv6-access-list aclv6log)# exit
device(config)#
The following example enables accounting for the MAC ACL mac123.
device# configure terminal
device(config)# mac access-list mac123
device(config-macl-mac123)# enable accounting
The following example disables accounting for the MAC ACL mac123.
device# configure terminal
device(config)# mac access-list mac123
device(config-macl-mac123)# no enable accounting
Release version | Command history |
---|---|
08.0.95 | This command was introduced. |