Setting the Aging Time of Dynamic MAC Address Entries
Context
Setting the aging time for dynamic MAC address entries helps control the number of learned MAC address entries. The aging time needs to be set properly for dynamic MAC address entries so that the switch can delete unneeded MAC address entries. On network topologies that change frequently, a shorter aging time makes the switch more sensitive to these network changes. On more stable network topologies, a longer aging time can be used.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
mac-address aging-time aging-time
The aging time is set for dynamic MAC address entries.
The aging time can be 0 or an integer that ranges from 60 to 1000000, measured in seconds. The default value is 300. The value 0 indicates that dynamic MAC address entries will never be aged out.
When the aging time is 0, MAC address entries are fixed. To clear the fixed MAC address entries, set the aging time to a non-0 value. The system then automatically deletes the MAC address entries after twice the aging time.