liveBook · Manning

Mac address table

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

A MAC address table is a switch data structure that maps learned MAC addresses to the ports through which their devices are reachable.

A MAC address table is a switch data structure that maps learned MAC addresses to the ports through which devices are reachable. When a switch receives a unicast frame, it checks the destination MAC address: a matching entry sends the frame through the specified port; an unknown destination is flooded through every port in the same VLAN except the receiving port. section 12.1.1

The table has a finite capacity. A MAC flooding attack fills it with spoofed addresses, preventing the switch from learning legitimate hosts. Frames destined for those hosts then remain unknown and are flooded, allowing an attacker to receive copies of traffic. DHCP exhaustion can produce the same effect as a side effect of its many spoofed DHCP messages. section 12.1.1

Port Security constrains how the table is populated on individual switch ports:

  • Limits the number of unique MAC addresses learned on a port; the default limit is one when Port Security is enabled. section 12.3
  • Treats learned addresses on a protected port as secure MAC addresses; static and dynamic secure addresses can coexist. section 12.3
  • Forgets dynamically learned addresses, including secure MAC addresses, when the port goes down. section 12.3

Verifying a protected table entry

SW1# show mac address-table secure Vlan Mac Address Type Ports 1 0200.0011.1234 STATIC Fa0/4 1 00e0.423c.f021 STATIC Fa0/5 2 0200.0022.3456 STATIC Fa0/5 Secure MAC addresses appear as STATIC in the MAC address table. Use show port-security interface f0/1 to compare a port’s maximum and total learned addresses, its last source address, and its violation count.

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains lookup, VLAN-scoped flooding, capacity exhaustion, and Port Security controls, but does not detail the complete learning algorithm.
Examples
Uses SW1, PC1, R1, spoofed frames, and Cisco verification output showing secure addresses and learned-port counts.
What it assumes
Assumes familiarity with Ethernet MAC addresses, switch ports, VLANs, unicast frames, and frame flooding.
What you can do after
Diagnose unknown-unicast flooding and verify secure MAC entries and per-port learning limits with Cisco IOS commands.
How it connects
Connects switching, VLANs, unicast forwarding, DHCP exhaustion, MAC flooding, and Port Security.

Also explained in

Compare how 2 books explain mac address table →

Related concepts

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