liveBook · Manning

Mac address table

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

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

A MAC address table maps learned MAC addresses to the switch ports through which their devices are reachable. A switch uses the destination MAC address in an Ethernet frame to choose the outgoing port. section 6.0 section 6.3.1

Understand the table’s main behaviors:

  • Learns dynamically from each frame’s Source field, associating the source MAC address with the receiving port. section 6.3.1
  • Ages dynamic entries after five minutes without receiving a frame from the associated MAC address. section 6.3.1
  • Forwards a known unicast frame through the port listed for its destination MAC address. section 6.3.2
  • Floods an unknown unicast frame through every port except the receiving port, allowing the destination to respond and become learnable. section 6.3.2
Figure 6.3 A network with two switches, each with two PCs connected. SW1 and SW2 have learned the MAC address of each PC by examining the Source field of frames received on their ports as the PCs communicate with each other. SW1 knows it can reach PC1 via its G0/1 port, PC2 via its G0/2 port, and PC3/PC4 via its G0/0 port. SW2 knows it can reach PC1/PC2 via its G0/0 port, PC3 via its G0/1 port, and PC4 via its G0/2 port.

A two-switch topology shows how each switch records directly connected hosts and reaches remote hosts through the inter-switch port. section 6.3.1

Reading Cisco IOS output

Use show mac address-table in user or privileged EXEC mode. The output identifies each entry’s VLAN, MAC address, Type, and port. DYNAMIC entries were learned automatically; STATIC entries were manually configured. To remove dynamically learned entries, use clear mac address-table dynamic. Specific addresses or interfaces can also be targeted. section 6.3.3 section 6.3.3

Do not confuse a MAC address table with an ARP table. The switch’s table maps MAC addresses to switch ports for frame forwarding; an ARP table maps IP addresses to MAC addresses for frame encapsulation by hosts or routers. section 10.1.1

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

How deep it goes
Explains learning, aging, forwarding, flooding, Cisco output, and clearing commands, but does not detail memory internals beyond the CAM name.
Examples
Uses two-switch PC topologies, unknown-unicast flooding, reply-based learning, and show mac address-table output.
What it assumes
Assumes basic Ethernet frame and Layer 2 header knowledge while distinguishing switch MAC tables from host or router ARP tables.
What you can do after
Operate/configure Cisco IOS by viewing the MAC address table and clearing dynamic entries selectively or globally.
How it connects
Connects MAC learning and aging with Ethernet frames, unicast forwarding, flooding, VLANs, Cisco IOS, and ARP.

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 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.