NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Networking Fundamentals
You cannot secure a network if you do not understand how data moves across it. The Networking Fundamentals learning path
ViewRouting & Switching Fundamentals
Build a rock-solid foundation in modern network infrastructure. This learning path takes you deep into the mechanics of
ViewPreview · 30 min
If routers are the postal service of the internet, switches are the local sorting offices. Almost every frame on a company LAN passes through a switch.
Old networks used hubs. A hub copied every frame out of every port, so every device saw everybody's traffic, and collisions slowed the network down. Hubs are no longer used; the Layer 2 switch replaced them.
A switch works at Layer 2 (Data Link). It does not look at IP addresses. It only cares about MAC addresses and its own ports.
It keeps a table in fast memory called the CAM table (Content Addressable Memory), usually called the MAC address table. Each entry says: "MAC address X is on port Y (in VLAN Z)". When a frame arrives, the switch does two things:
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in