Setting the Aging Time of Dynamic MAC Address Entries
Context
To prevent explosive increase of MAC address entries, set the aging time for dynamic MAC address entries.
Because the network topology changes frequently, the switch will learn more and more MAC addresses. Therefore, the aging time needs to be set properly for dynamic MAC address entries so that the switch can delete unneeded MAC address entries to prevent a sharp increase of MAC address entries. A shorter aging time makes the switch more sensitive to network changes and is applicable to networks where network topology changes frequently. A longer aging time makes the switch more insensitive to network changes and is only applicable to stable networks.
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 is 0 or an integer that ranges from 60 to 1000000, in seconds. The default value is 300. The value 0 indicates that dynamic MAC address entries will not be aged out.
When the aging time is 0, MAC address entries can be fixed. To clear the fixed MAC address entries, set the aging time to a non-0 value. The system then deletes fixed MAC address entries after twice the aging time.
- Run commit
The configuration is committed.