A L2 switch works at the data link layer of the OSI model. It sends Ethernet frames depending on MAC addresses. L2 switches are used to connect devices in a local area network infrastructure that consist of computers, printers, and switches. In a small office network, an L2 switch can serve as the foundation of the network structure and allows the devices to interact with one another, It can also be used as building-block switches in bigger enterprise networks for more complex network topologies. L2 switches are renowned for their high-speed switching performance and can effectively manage a large amount of local area network traffic