|
发表于 2017-3-26 13:32:04
|
显示全部楼层
IP Address Accounting
By enabling IP accounting, users can see the number of bytes and packets switched through the Cisco IOS Software on a source and destination IP address basis. Only transit IP traffic is measured and only on an outbound basis; traffic generated by the software or terminating in the software is not included in the accounting statistics.
To Enable IP accounting based on the IP packets output on the interface, use the ip accounting output-packets command in interface configuration mode.
Example
Router#
Router#config t
Router(config)#interface ethernet0
Router(config-if)#ip accounting output-packets
MAC Address Accouting
The MAC address accounting feature provides accounting information for IP traffic based on the source and destination MAC addresses on LAN interfaces. This feature 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.
To enable IP accounting on a LAN interface based on the source and destination MAC address, use the ip accounting mac-address [input | output] command in interface configuration mode.
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.
Examples
Router#
Router#config t
Router(config)#interface ethernet0
Router(config-if)#ip accounting mac-address input
Router(config-if)#ip accounting mac-address output
For more information about ip accounting, please visit www.cisco.com. |
8#
2017-3-26 13:32:04
回复(0)
收起回复
|