Octet

What is a MAC address and how is it structured?

Show the answer

Say this first

A MAC address is a 48-bit layer 2 address written as 12 hex digits. The first 24 bits are the OUI, assigned to the manufacturer by the IEEE; the last 24 bits are assigned by that vendor. Two bits in the first byte carry meaning: the least significant bit is I/G (1 means group, so multicast or broadcast), and the next is U/L (1 means locally administered). It only matters on the local segment; routers replace it at every hop.

Go deeper

Formats you will see

  • Cisco: 0050.56a1.2b3c
  • Linux and most others: 00:50:56:a1:2b:3c
  • Windows: 00-50-56-A1-2B-3C

Special addresses

AddressMeaning
ff:ff:ff:ff:ff:ffBroadcast
01:00:5e:xx:xx:xxIPv4 multicast (low 23 bits of the group address)
33:33:xx:xx:xx:xxIPv6 multicast (low 32 bits of the group address)
01:80:c2:00:00:00IEEE STP BPDUs
00:00:0c:07:ac:xxHSRP version 1 virtual MAC (xx is the group)

Locally administered addresses

Phones and laptops now randomize their MAC per Wi-Fi network for privacy. Those addresses have the U/L bit set, so the second hex digit is 2, 6, A or E. This breaks MAC-based tracking, some MAB setups and DHCP reservations.

Traps

  • Saying the MAC is used end to end. It is replaced at every router.
How did you do?Book 2.6 Multi-Access Networks