Network engineering

Stage 2 · Lesson 1 of 8

How a switch learns and forwards

Switching and VLANs

A connects devices in one local network and forwards by . It learns by reading the source MAC of every frame and noting the port it came in on, building its . For each frame it then looks up the destination MAC: if it is known, the frame goes out of that one port; if it is unknown, or a , the frame is flooded out of every other port in the same VLAN.

Entries age out after a few minutes of silence. Reading the table with show mac address-table is how you find which port a device is plugged into, a question behind many access-layer tickets.

Common trapexpecting a device to appear in the table before it has sent anything: switches learn only from traffic.

A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock

Resources for this stage

Start with· follow one of these

Practise

Mark this stage as not done?