liveBook · Manning

Clear mac address-table dynamic

As explained in Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

clear mac address-table dynamic is a Cisco IOS command family for removing dynamically learned MAC addresses from a switch's MAC address table.

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.

How Acing the CCNA Exam: Volume 1 Fundamentals and Protocols covers it

How deep it goes
Explains global, address-specific, and interface-specific syntax, but does not detail IOS internals.
Examples
Uses SW1 CLI output showing a populated table, the clear command, and an empty table afterward.
What it assumes
Assumes familiarity with switch MAC address tables and dynamic learning while defining the command’s clearing scopes.
What you can do after
Operate/configure a Cisco switch by clearing all, one, or interface-specific dynamic MAC entries and verifying the result.
How it connects
Connects MAC address tables with dynamic MAC address aging and show mac address-table verification.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.