clear mac address-table dynamic is a Cisco IOS command for removing dynamically learned MAC addresses from a switch’s MAC address table. The switch normally learns and ages these entries automatically, so manual clearing is usually reserved for troubleshooting or operational changes. section 6.3.3 section 6.6
Use the command family at different scopes:
- clear mac address-table dynamic — removes all dynamically learned MAC addresses. section 6.3.3
- clear mac address-table dynamic address mac-address — removes one specified dynamic MAC address. section 6.3.3
- clear mac address-table dynamic interface interface-name — removes dynamic MAC addresses learned on one interface. section 6.3.3
Clear and verify
At the SW1 prompt, enter clear mac address-table dynamic, then run show mac address-table. The resulting table is empty until the switch learns new addresses.
