Question: what is layer 2 vs layer 3?
Answer: Simply put, a layer 3 switch can forward packets between different networks like a router while layer 2 switches forward packets to different segments/or within a given network. Layer 2 is generally hardware i.e. mac address "routing" or mac tables. Layer 3 has to do with ip's.