Unit 6
Chapter 3
MAC Discovery and Resolution
Ethernet uses frames (with MAC addresses in the headers).
The Broadcast MAC address for local, Ethernet networks is
ff:ff:ff:ff:ff:ff
(12 Fs, or 12 nybbles, or 48 bits).
At boot, your PC sends a frame to the ethernet broadcast, from its MAC address. The nearest switch detects this broadcast and maps your MAC address to the physical port you’re plugged into. Now it can send traffic bound to you out the correct port.
Resolving MAC Addresses to IP Addresses
We do this only on local networks. Local Ethernet cares about your MAC address, but nothing outside your router does, except aspiring hackers. That’s why you’ll blur our MAC addresses in images you post.
The Address Resolution Protocol (ARP) makes the magic happen, resolving MAC to IP. It keeps a cache of addresses it’s already looked up, which you can see, and possibly delete, with these two commands.
arp -a arp -d *
Notice how deleting the cache requires Admin permissions, so kiddies with a copy of Ettercap can’t quite so easily hack your ARP table – though they will still be able to do it.
Parts of an Ethernet frame: https://www.techwalla.com/articles/what-is-an-ethernet-preamble