Reference Guide

Layer 2 | 917
mac accounting destination
e
Configure a destination counter for Layer 2 traffic.
Syntax
mac accounting destination {mac-address vlan vlan-id | vlan} [bytes | packets]
To delete a destination counter, enter
no mac accounting destination.
Parameters
Defaults
Not configured.
Command Modes
INTERFACE (available on physical interfaces only)
Command
History
Usage
Information
You must place the interface in Layer 2 mode (using the switchport command) prior to
configuring the
mac accounting destination command.
mac-address-table aging-time
c e s
Specify an aging time for MAC addresses to be removed from the MAC Address Table.
Syntax
mac-address-table aging-time seconds
Parameters
Defaults
1800 seconds
Version 8.3.7.0 Introduced on S4810
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
pre-Version 6.1.1.1 Introduced on E-Series
mac-address Enter the MAC address in the nn:nn:nn:nn:nn:nn format to count Layer 2
packets or bytes sent to that MAC address.
vlan vlan-id Enter the keyword vlan followed by the VLAN ID to count Layer 2
packets or bytes sent to the VLAN.
Range: 1 to 4094.
bytes
(OPTIONAL) Enter the keyword bytes to count only bytes
packets
(OPTIONAL) Enter the keyword packets to count only packets.
Version 7.4.1.0 Introduced on E-Series
seconds
Enter either zero (0) or a number as the number of seconds before MAC addresses are
relearned. To disable aging of the MAC address table, enter 0.
E-Series Range from CONFIGURATION mode: 10 - 1000000
E-Series Range from INTERFACE VLAN mode: 1 - 1000000
C-Series and S-Series Range: 10 - 1000000
Default: 1800 seconds