Chapter 5
Administering the Switch
MAC Addresses and Switch Stacks
The MAC address tables on all stack members are synchronized. At any given time, each stack member
has the same copy of the address tables for each VLAN. When an address ages out, the address is
removed from the address tables on all stack members. When a switch joins a switch stack, that switch
receives the addresses for each VLAN learned on the other stack members. When a stack member leaves
the switch stack, the remaining stack members age out or remove all addresses learned by the former
stack member.
Default MAC Address Table Configuration
Table 5-2
Table 5-2
Feature
Aging time
Dynamic addresses
Static addresses
Changing the Address Aging Time
Dynamic addresses are source MAC addresses that the switch learns and then ages when they are not in
use. You can change the aging time setting for all VLANs or for a specified VLAN.
Setting too short an aging time can cause addresses to be prematurely removed from the table. Then
when the switch receives a packet for an unknown destination, it floods the packet to all ports in the same
VLAN as the receiving port. This unnecessary flooding can impact performance. Setting too long an
aging time can cause the address table to be filled with unused addresses, which prevents new addresses
from being learned. Flooding results, which can impact switch performance.
Beginning in privileged EXEC mode, follow these steps to configure the dynamic address table aging
time:
Command
Step 1
configure terminal
Step 2
mac address-table aging-time [0 |
10-1000000] [vlan vlan-id]
Step 3
end
Step 4
show mac address-table aging-time
Step 5
copy running-config startup-config
To return to the default value, use the no mac address-table aging-time global configuration command.
OL-26520-01
shows the default MAC address table configuration.
Default MAC Address Table Configuration
Default Setting
300 seconds
Automatically learned
None configured
Purpose
Enter global configuration mode.
Set the length of time that a dynamic entry remains in the MAC
address table after the entry is used or updated.
The range is 10 to 1000000 seconds. The default is 300. You can also
enter 0, which disables aging. Static address entries are never aged
or removed from the table.
For vlan-id, valid IDs are 1 to 4094.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Catalyst 2960 and 2960-S Switches Software Configuration Guide, Release 15.0(1)SE
Managing the MAC Address Table
5-15