Question: what is the difference between layer 2 and layer 3?
Answer: A Layer 2 switch only works with MAC addresses and doesn't interact with any higher layer addresses, such as an IP. A Layer 3 switch, on the other hand, can also do static routing and dynamic routing, which includes IP and virtual local area network (VLAN) communications.