Skip to content
Lesson: How a switch and ARP find the next deviceSwitch
← How a network works

Lesson 1 of 6 · OSI Layer 2 (with a layer 3 address)

How a switch and ARP find the next device

IP addresses name the destination, but an Ethernet frame needs a MAC address for each hop. ARP finds the MAC for an IP address on the local network, and the switch learns which port each MAC lives on.

How a switch and ARP find the next device

Step through one local conversation and watch the MAC table fill in.

port 1port 2port 3port 4LAPTOP192.168.1.10 · MAC AASWITCHlearns MAC → portNAS192.168.1.20 · MAC BBPRINTER192.168.1.30 · MAC CCROUTER192.168.1.1 · MAC RRISPnext hop
dst FF (everyone) · src AA · ARP: who has 192.168.1.20?

STEP 01 / 06

A broadcast asks for a MAC address

The laptop knows the NAS IP address but not its MAC address. It sends an ARP request to the broadcast address FF:FF:FF:FF:FF:FF, which means every device on the local network.

Switch MAC table

Empty

Simplified: MACs are shortened to two letters and the ARP cache timers are left out.

Check your understanding

How a switch and ARP find the next device

All 1 sections · no timer

Unlimited retries

Questions from every section are combined into one assessment. Answer them all correctly to complete the article.

Your completion saves in this browser. Sign in to sync it to your account.