Your Sw 3 is not L3 switch but L2 which does not support routing; replace sw3 with L3 one (c3560 or c3650 that is more square box in PT) or a router. Then enable ip routing, make ports as trunk ports, add vlans to be same with other switches. Add 2 SVI in range of your 2. This article outlines a basic example of how layer 3 routing functionality on MS series switches could be implemented. all the switches we have are cisco catalyst 2960x running version 15. However other PC's receive different IP's on the switch via a DHCP server. Routers connect different networks, use IP addresses to pick the next hop, and often do NAT so your devices share one public IP. Switches maintain fast local traffic by learning MAC addresses and forwarding frames to the correct port, utilizing VLANs to segment groups. " We now live in a world of: Layer 2 and Layer 3 switches still map to their classic OSI roles, but their use in real networks has evolved.
[PDF Version]