The one-sentence version
A switch connects devices within the same network and forwards traffic using MAC addresses. A router connects separate networks together and forwards traffic using IP addresses. That distinction — MAC vs IP, same network vs different networks — is the core of what the A+ exam tests.
How they fit together in a real network
Routers and switches aren't competitors — they're partners. In almost every real network, both are present and each handles a different job. The router sits at the edge, facing the internet. The switch sits inside, connecting everything on the local network.
When your PC wants to print to the office printer, that traffic never touches the router — the switch handles it entirely within the local network using MAC addresses. When your PC wants to reach a website, the traffic goes switch → router → internet, with the router handling the IP-level routing to the correct destination.
Routers vs switches — full comparison
| Router | Switch | |
|---|---|---|
| OSI Layer | Layer 3 — Network | Layer 2 — Data Link |
| Addresses used | IP addresses | MAC addresses |
| Primary job | Route traffic between networks | Forward frames within a network |
| Connects | LAN to WAN (internet) | Devices on same LAN |
| Traffic table | Routing table (IP-based) | MAC address table (CAM table) |
| Broadcast domain | Separates broadcast domains | All ports in one broadcast domain* |
| Default gateway? | Yes — it IS the default gateway | No — transparent to IP routing |
| NAT? | Yes — translates private to public IPs | No — doesn't touch IP addresses |
| Common location | Network edge (ISP-facing) | Inside the LAN (closet/rack) |
* Managed switches with VLANs can segment broadcast domains — but that's a Network+ topic.
Switch = Layer 2 = MAC addresses = same network.
Router = Layer 3 = IP addresses = between networks.
If the exam asks "what device separates broadcast domains?" — the answer is router. If it asks "what device uses a MAC address table?" — the answer is switch. If it asks "what is the default gateway?" — that's the router's IP address on the local network.
Hub vs switch — why it matters
A hub is an older Layer 1 device that blindly sends every incoming frame out to every single port — it has no intelligence. Every device on a hub receives every frame, whether it's meant for them or not. This wastes bandwidth and creates collisions.
A switch is smarter — it learns which device is on which port (via the MAC address table) and sends frames only to the correct port. This is called unicast forwarding and it's why switches replaced hubs. On the A+ exam, hubs still appear as a concept — just remember: hub = Layer 1, broadcasts to all; switch = Layer 2, sends only to the destination.
Real-world scenarios
ping 8.8.8.8 to test internet connectivity.ping [printer IP] to verify local connectivity.Key Takeaways
Related Articles
Preparing for the A+ exam?
See the books and practice exams that make the most difference.