A network switch that forwards frames based on MAC addresses operates at which layer of the OSI model?
MAC address forwarding is a Layer 2 function: switches build a MAC address table and forward frames based on destination MAC, which is the Data Link layer's addressing scheme. Layer 3 handles IP routing, so Data Link is the correct OSI layer for this behaviour.
Why this answer
A network switch that forwards frames based on MAC addresses operates at Layer 2, the Data Link layer. This layer is responsible for node-to-node data transfer and error detection using MAC addresses, as defined by IEEE 802 standards. Switches build a MAC address table by learning source MAC addresses from incoming frames and use this table to make forwarding decisions.
Exam trap
The N10-009 exam often tests the misconception that switches operate at Layer 3 because they can be configured with IP addresses for management (e.g., SVI), but the core frame-forwarding function remains at Layer 2 using MAC addresses.
Why the other options are wrong
The Physical layer (Layer 1) handles raw bit transmission over a physical medium, not MAC address-based frame forwarding. A switch that forwards frames using MAC addresses operates at the Data Link layer (Layer 2).
The Network layer (Layer 3) uses logical addressing (e.g., IP addresses) for routing packets between networks, not MAC addresses for forwarding frames within a single network.
The Transport layer (Layer 4) handles end-to-end communication, segmentation, and flow control, not MAC address-based frame forwarding, which is a Layer 2 function.