A Layer 2 switch and a Layer 3 switch differ in the address they read. A Layer 2 switch reads the MAC address in a frame and sends the frame to one port inside one LAN (6.5, 6.6). A Layer 3 switch also reads the IP address in a packet and routes it between networks, as a router does (6.7). The Teachers' Guides teach one switch and one router, and they do not name these two kinds (Teachers' Guide 6.5, page 152) (ගුරු අත්පොත 6.5, පිටුව 168).
Both kinds exist because one flat LAN does not grow well. A school can split its switches into VLANs for the office, the labs and the Wi-Fi. Each VLAN is a separate LAN, so a Layer 3 switch at the centre routes between them at full port speed. A router at the edge still joins the school to the ISP. Large data centres go further and make almost every link a Layer 3 link.
The papers test this split. 2025 P-I Q19 asks the basic job of a switch, and the official key is to forward frames by MAC address. 2019 (New Syllabus) P-I Q35 describes a switch with VLAN settings that uses "frames and packets", and only a switch with Layer 3 functions does that. For Paper II, remember one fact: at a Layer 3 hop, the IP addresses stay the same and the MAC addresses change.
The hop, the VLAN design, the uses in 2026 and the full question list are in the full breakdown.
