Command:

ip accounting mac-address


Mode:

Router(config-if)#


Syntax:

ip accounting mac-address {input | output}
no ip accounting mac-address {input | output}

 

Syntax Description:

input Performs accounting based on the source MAC address on received packets.
output Performs accounting based on the destination MAC address on transmitted packets.

 

Command Description:

To enable IP accounting on a LAN interface based on the source and destination MAC address, use the ip accounting mac-address command in interface configuration mode. To disable IP accounting based on the source and destination MAC address, use the no form of this command.

This command is disabled by default.

This feature is supported on Ethernet, FastEthernet, and FDDI interfaces.

To display the MAC accounting information, use the show interface mac EXEC command.

MAC address accounting provides accounting information for IP traffic based on the source and destination MAC address on LAN interfaces. This calculates the total packet and byte counts for a LAN interface that receives or sends IP packets to or from a unique MAC address. It also records a timestamp for the last packet received or sent. With MAC address accounting, you can determine how much traffic is being sent to and/or received from various peers at NAPS/peering points.


Example:

The following example enables IP accounting based on the source and destination MAC address for received and transmitted packets:

Router(config)#interface ethernet 4/0/0
Router(config-if)#ip accounting mac-address input
Router(config-if)#ip accounting mac-address output


Misconceptions:

None


Related Commands:

None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)