Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

MAC aging does not work

I have Catalyst1900, Catalyst2900 and Catalyst3500 switches in my LAN. I want to know where is each user. I use command "show mac-address-table" for mac address search. But if the user is inactive during 5 minutes I can't locate it, because mac address absence. This caused by defult mac address aging-time 300 seconds. I set this parameter to maximal value 1000000 seconds for each switch. But mac addresses are aged more rapidly than 11 days. Sometimes 10-15 min. Why? And second question, can spanning tree affect this process somehow?


Re: MAC aging does not work

The command used is :

mac-address-table aging-time age

age can be a Number from 10 to 1000000 (seconds). Your configuration should work.

Try reducing the age value slightly day 800000 or something.

All the 3 switches mentioned by you support this command.

Use the related commands given here to verify:

I don't think the spanning tree process has anyhting to do with this. Please however record any error message or log, so that it would be useful to troubleshoot.

New Member

Re: MAC aging does not work

Spanning tree protocol do affect the aging time of the mac table.When the netowrk topoloy changes,Spanning tree protocol will shorten the aging time of the mac address


Re: MAC aging does not work

If there is some problem due to spanning tree convergence,, this start the fast aging time, which flushes all the mac addresss in 15 sec. as part of network convergence. you probably need to check if you are getting the spanning tree tcns.. is portfast is enabled on all server/workstations ports etcc.

This link talks about the fast aging..

Hope this helps..


Re: MAC aging does not work

Since you know or can tell which vlan the port is located and you can correspond the vlan to the subnet, Try pinging the entire subnet first (direct broadcast). Then try to show the cam table/ mac addres table. It should be there if the device is connected.

CreatePlease login to create content