Pcornel
Networking · Switching › Ethernet Switching › MAC Learning

Dynamic MAC entry

Cheat sheet · https://pcornel.dk/topic.php?topic=960

Back to the Topic

Answer

A dynamic MAC entry is learned automatically from source addresses and ages out when the host stops sending; show mac address-table dynamic lists them.

Remember

  • Source MAC is learned on ingress; destination MAC drives egress selection
  • Known unicast is forwarded to one learned port; unknown unicast and broadcast are flooded within the VLAN
  • A frame received on the learned destination port is filtered
  • Dynamic entries age; static entries remain until removed.

First checks

  • show mac address-table dynamic — dynamic entries
  • show mac address-table dynamic interface <interface> — MACs per port

Commands

show mac address-table dynamic
Limits MAC table view to dynamically learned entries.
clear mac address-table dynamic
show ip arp 10.20.0.15
show arp
show mac address-table address <mac>
show cdp neighbors <port> detail

Verify in this order

frame source MAC → dynamic entry on ingress port

Where it usually breaks

media/optics → administrative state → carrier/line protocol → negotiation → error/drop counters → neighbor discovery → upper-layer adjacency

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=960

Confirmation

Confirm action

Continue?