Understanding How Layer 2 Switches Handle Unknown MAC Addresses
Switches operate atLayer 2 (Data Link Layer)of the OSI model and maintain aMAC address table (CAM table)to forward frames efficiently.
When a switch receives a frame, itchecks its MAC address tableto see if it knows the destination MAC address.
If the destinationMAC address is not in the table(meaning the switch does not know which port leads to PC-C), the switch follows theflooding behavior.
What Happens When Switch1 Receives a Frame from PC-A to PC-C?
Switch1 checks its MAC table:
The source MAC (PC-A) is recorded in the table on portG0/1.
The destination MAC (PC-C)is not in the table.
Switch1 does not know where PC-C is:
Itfloodsthe frame out of allactive ports except the port it was received on (G0/1).
This means the frame is sent to:
Switch2 (via G0/23)
PC-B (via G0/2)
Switch2 receives the frame and follows the same process:
If Switch2 has PC-C's MAC in its table, it forwards the frame appropriately.
If not,it floodsthe frame again until PC-C replies.
Once PC-C responds, Switch1 and Switch2 learn its MAC address and update their tables.
Why Other Options Are Incorrect:
❌A. Switch1 queries Switch2 for the MAC address of PC-C.
Incorrect:Switches do not query other switches directly for MAC addresses. Instead, they rely on learning MAC addresses dynamically through frame forwarding.
❌B. Switch1 drops the frame and sends an error message back to PC-A.
Incorrect:Switchesdo not drop frames for unknown MAC addresses. Instead, theyfloodthe frames out all ports except the incoming port.
❌D. Switch1 sends an ARP request to obtain the MAC address of PC-C.
Incorrect:
ARP (Address Resolution Protocol)is only used to resolve IP addresses to MAC addresses.
Since PC-A issending a frame (Layer 2), not an IP packet (Layer 3), ARP isnot involvedhere.
Conclusion
Since Switch1does not know the destination MAC address, itfloods the frame out all active ports except the port it was received on. This is the default behavior of Layer 2 switches when they encounter anunknown MAC address.
Thus, thecorrect answer is:✔C. Switch1 floods the frame out all active ports except port G0/1.
References
Cisco CCNA 200-301 Official Guide – MAC Address Table & Frame Forwarding
RFC 894 – Standard for Ethernet Frame Forwarding
Cisco Networking Essentials – Switch Flooding Behavior