Reading a MAC
Lesson 9 of 32 in Coddy's The OSI Model course.
A MAC address has structure. The first three bytes are the OUI (Organizationally Unique Identifier): a vendor prefix assigned to the manufacturer. The last three bytes are the card's serial within that vendor.
That makes MACs surprisingly informative: seeing 3c:5a:b4 on an unknown device tells you who built its network card, which is a real technique for identifying mystery devices on a Wi-Fi network.
One special MAC to know: ff:ff:ff:ff:ff:ff, the layer 2 broadcast, received by every device on the segment.
Challenge
BeginnerA device reports the MAC 3c:5a:b4:12:34:56. Print its OUI (the vendor prefix), colons included.
Expected output:
3c:5a:b4Try it yourself
All lessons in The OSI Model
Practice on your own: Terminal playground