what is the difference between a hub and a layer 2 switch and layer 3 switches?
The main difference between Layer 2 and Layer 3 is the routing function. ... That means, a Layer 3 switch has both MAC address table and IP routing table, and handles intra-VLAN communication and packets routing between different VLANs as well. A switch that adds only static routing is known as a Layer 2+ or Layer 3 Lite.