mac
171
Chapter 5 Commands for MAC Address
Table Configuration
5.1 Commands for MAC Address Table Configuration
5.1.1 clear mac-address-table dynamic
Command: clear mac-address-table dynamic [address <mac-addr>] [vlan <vlan-id>]
[interface [ethernet | portchannel] <interface-name>]
Function: Clear the dynamic address table.
Parameter: <mac-addr>: MAC address will be deleted; <interface-name> the port name
for forwarding the MAC packets; <vlan-id> VLAN ID.
Command mode: Admin mode.
Usage Guide: Delete all dynamic address entries which exist in MAC address table,
except application, system entries. MAC address entries can be classified according to
different sources, the types are as follows: DYNAMIC, STATIC, APPLICATION, SYSTEM.
DYNAMIC is the dynamic MAC address entries learned by switch, it can be aged by
switch automatically.
Example: Delete all dynamic MAC.
Switch#clear mac-address-table dynamic
5.1.2 mac-address-table aging-time
Command: mac-address-table aging-time <0 | aging-time>
no mac-address-table aging-time
Function: Sets the aging-time for the dynamic entries of MAC address table.
Parameter: <aging-time> is the aging-time seconds, range from 10 to 1000000; 0 to
disable aging.
Command Mode: Global Mode.
Default: Default aging-time is 300 seconds.
Usage Guide: If no destination address of the packets is same with the address entry in
aging-time, the address entry will get aged. The user had better set the aging-time
according to the network condition, it usually use the default value.
Example: Set the aging-time to 600 seconds.
Switch(config)#mac-address-table aging-time 600










