Switches typically work at Layer 2 but as shown in InterVLAN Routing switches can work at both Layer 2 and Layer 3 .
- A Layer 3 switch forwards traffic based on IP addresses.
- Does what a traditional router does using software in hardware.
- To differentiate you can configure a port to be a switchport or a router port.