L2 (Layer 2) refers to the second layer of the OSI model, known as the link layer. Routers and firewalls operating at this layer manage direct data transmission between network devices based on physical addresses (MAC addresses). L2 devices are responsible for detecting and correcting transmission errors, controlling media access, and routing data frames between nodes.