mac-accounting
To generate accounting information for IP traffic based on the source and destination Media Access Control
(MAC) addresses on LAN interfaces, use the
mac-accounting
command in interface configuration mode. To
disable MAC accounting, use the
no
form of this command.
mac-accounting
{
egress| ingress
}
no mac-accounting
{
egress| ingress
}
Syntax Description
Generates accounting information for IP traffic based on the destination MAC
addresses (egress direction).
egress
Generates accounting information for IP traffic based on the source MAC addresses
(ingress direction).
ingress
Command Default
MAC accounting is disabled
Command Modes
Interface configuration
Command History
Modification
Release
This command was introduced.
Release 4.1.1
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
The
mac-accounting
command calculates the total packet and byte counts for a LAN interface that receives
or sends IPv4 packets to or from a unique MAC address.
Task ID
Operations
Task ID
read, write
interface
Examples
This example shows how to enable MAC accounting for the source MAC address on the ingress direction:
RP/0/RSP0/CPU0:router
configure
RP/0/RSP0/CPU0:router
interface bundle-ether <bundle-id>
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
99
Ethernet Interface Commands on the Cisco ASR 9000 Series Router
mac-accounting