Menu
Coddy logo textTech

ARP

Lesson 10 of 32 in Coddy's The OSI Model course.

Machines are configured with IP addresses, but frames are delivered to MAC addresses. ARP (Address Resolution Protocol) is the bridge: a machine shouts "who has 10.0.0.7?" to the whole segment, and the owner answers with its MAC.

Answers are cached in the ARP table so the shouting only happens once per neighbor. Reading that table is a everyday diagnostic move: it shows which devices your machine has actually talked to on the local network.

On a real system you would run arp -a; here you get the table as a file.

challenge icon

Challenge

Easy

The file arp_table.txt holds one ip mac pair per line. Use grep to print the single line for 192.168.1.7.

Expected output:

192.168.1.7 aa:bb:cc:00:00:07

Try it yourself

Terminal

All lessons in The OSI Model

Practice on your own: Terminal playground