
show interfaces mac-accounting
Displays MAC address accounting statistics for all or specified interfaces.
Syntax: show interfaces [gbe bay/slot/port] mac-accounting
gbe bay/slot/port
Specifies the Gigabit Ethernet port to display MAC address accounting statistics.
Description: Use the show interfaces mac-accounting command to display MAC address accounting statistics per MAC address for all interfaces. Specify a particular interface to limit the display to the specified interface: show interfaces gbe bay/slot/port mac-accounting.
Factory Default: None.
Command Mode: Privileged and Executive.
Example: In the following example MAC address accounting is enabled on interface GBE 1/27/1 for both the input and output directions and displayed using the show interfaces mac-accounting command:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface gbe 1/27/1
router(config-if)#ip accounting mac-address input
router(config-if)#ip accounting mac-address output
router(config-if)#end
router#show interfaces mac-accounting
GBE 1/25/1 (128 free)
Input
Total : 0 pkts, 0 bytes
Output
Total : 0 pkts, 0 bytes
GBE 1/25/2 (128 free)
Input
Total : 0 pkts, 0 bytes
Output
Total : 0 pkts, 0 bytes
.
.
.
GBE 1/27/1 (0 free)
Input
0001.0000.0001( 1) : 2173597 pkts, 130415820 bytes
0001.0000.0002( 2) : 2173598 pkts, 130415880 bytes
0001.0000.0003( 3) : 2173597 pkts, 130415820 bytes
0001.0000.0004( 4) : 2173598 pkts, 130415880 bytes
0001.0000.0005( 5) : 2173598 pkts, 130415880 bytes
.
.
.
0001.0000.001f( 31) : 2196846 pkts, 131810760 bytes
0001.0000.0020( 32) : 2196845 pkts, 131810700 bytes
Total : 69927077 pkts, 4195624680 bytes
Output
0001.0000.0001( 1) : 784281 pkts, 47056860 bytes
0001.0000.0002( 2) : 784282 pkts, 47056860 bytes
0001.0000.0003( 3) : 784281 pkts, 47056860 bytes
.
.
.
0001.0000.001e( 30) : 807533 pkts, 48451980 bytes
0001.0000.001f( 31) : 807534 pkts, 48452040 bytes
0001.0000.0020( 32) : 807534 pkts, 48452040 bytes
Total : 25469042 pkts, 1528142520 bytes
router#
Related Commands: clear counters
ip accounting mac-address
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: Interface_Cmd.fm
HTML File Name: Interface_Cmd39.html
Last Updated: 02/25/05 at 14:28:34