Answer Description
Switches communicate using MAC Addressing, which belongs to Layer 2 (Data Link Layer) of the OSI Model. Some switches come with routing capabilities and can use Layer 3 (Network Layer) to communicate, these are conveniently known as Layer 3 Switches.
Wikipedia
A network switch (also called switching hub, bridging hub, and, by the IEEE, MAC bridge) is networking hardware that connects devices on a computer network by using packet switching to receive and forward data to the destination device A network switch is a multiport network bridge that uses MAC addresses to forward data at the data link layer (layer 2) of the OSI model Some switches can also forward data at the network layer (layer 3) by additionally incorporating routing functionality Such switches are commonly known as layer-3 switches or multilayer switchesSwitches for Ethernet are the most common form of network switch
Network_switch - Wikipedia, the free encyclopedia