Online admissions open for the SEO, web development and networking & cybersecurity courses. Enquire for the next batch.

MAC Addresses Explained: Format, OUI and Address Types

5 min read Updated By the SkillNewton team

What is a MAC address?

A MAC (Media Access Control) address is a 48-bit identifier assigned to a network interface and used to deliver Ethernet and Wi-Fi frames within a local network. It is written as six pairs of hexadecimal digits, such as 00:1a:2b:3c:4d:5e. The first half usually identifies the manufacturer. Switches forward frames using MAC addresses, while routers use IP addresses to move packets between networks.

Where MAC addresses fit

MAC addresses work at Layer 2, the data link layer of the OSI model. Every Ethernet or Wi-Fi frame carries a destination and a source MAC address. A switch learns which port each source address lives on and forwards frames only where they need to go.

A MAC address matters only on the local link. When a packet crosses a router, the router strips the old frame and builds a new one with its own MAC address as the source and the next hop as the destination. The IP addresses stay the same end to end; the MAC addresses change at every hop.

Key terms

  • Burned-in address: the address the manufacturer programmed into the network interface.
  • OUI (Organizationally Unique Identifier): the first 24 bits, assigned to a manufacturer by the IEEE Registration Authority.
  • NIC-specific part: the last 24 bits, which the manufacturer assigns to make each interface unique.
  • EUI-48: the formal IEEE name for the 48-bit address format.

Reading the 48-bit format

Forty-eight bits are six octets, each shown as two hexadecimal digits. Different systems write the same address in different styles, so learn to recognise all three.

StyleExampleWhere you see it
Colon-separated00:1a:2b:3c:4d:5eLinux, macOS, Wireshark
Hyphen-separated00-1A-2B-3C-4D-5EWindows
Dotted groups of four001a.2b3c.4d5eCisco switches and routers

In 00:1a:2b:3c:4d:5e, the OUI is 00:1a:2b and the device-specific part is 3c:4d:5e. Wireshark and many online lookup tools translate the OUI into a vendor name, which helps you spot an unknown device on your own network. Large manufacturers hold many OUIs, and smaller IEEE blocks (MA-M and MA-S) give some vendors a longer prefix.

Unicast, multicast and broadcast

Two bits in the first octet carry special meaning. Looking at the first octet in binary, the least significant bit is the I/G bit and the next one is the U/L bit.

BitValue 0Value 1
I/G (individual/group), lowest bitUnicast: one interfaceMulticast: a group of interfaces
U/L (universal/local), second-lowest bitUniversally administered, from an OUILocally administered, set by software or an administrator
  • Broadcast: ff:ff:ff:ff:ff:ff reaches every device in the broadcast domain or VLAN. ARP requests and DHCP Discover messages use it.
  • IPv4 multicast: addresses start 01:00:5e; for example mDNS on 224.0.0.251 uses 01:00:5e:00:00:fb.
  • IPv6 multicast: addresses start 33:33; the all-nodes group ff02::1 maps to 33:33:00:00:00:01.

MAC addresses and ARP

Applications know IP addresses, but the frame on the wire needs a MAC address. ARP (Address Resolution Protocol) bridges the gap for IPv4. The sender broadcasts "who has 192.168.1.1?" and the owner replies with its MAC address, which the sender caches. IPv6 does the same job with Neighbor Discovery, using multicast instead of broadcast.

ip neigh show                 # Linux: IP-to-MAC cache
# 192.168.1.1 dev eth0 lladdr 00:1a:2b:3c:4d:5e REACHABLE

arp -a                        # Windows and macOS: ARP cache
Switch# show mac address-table dynamic

Because ARP has no authentication, a device on the same subnet can send forged replies and redirect traffic, an attack called ARP spoofing. Switches defend against it with Dynamic ARP Inspection, which relies on the binding table from DHCP snooping described in the DHCP guide.

Randomised and locally administered MACs

A fixed MAC address lets anyone running Wi-Fi monitoring track a phone from place to place. Modern iOS, Android and Windows devices therefore use randomised, locally administered MAC addresses for Wi-Fi, often a different one for each network. Virtual machines, containers and VPN adapters also use locally administered addresses.

  • DHCP reservations and MAC-based allow lists may stop matching when a device changes its address.
  • Network inventories can show one phone as several devices over time.
  • Administrators of managed networks can ask users to turn off randomisation for that one network, or move to 802.1X authentication, which identifies users rather than hardware.

The same flexibility means a MAC address is easy to change, so MAC filtering alone is a weak security control. Use it only alongside stronger measures such as 802.1X and port security.

Finding and changing a MAC address

ip link show                       # Linux: link/ether shows the MAC
getmac /v                          # Windows: MAC per adapter
ipconfig /all                      # Windows: "Physical Address"
ifconfig en0 | grep ether          # macOS

# Lab only: set a temporary locally administered MAC on Linux
sudo ip link set dev eth0 down
sudo ip link set dev eth0 address 02:11:22:33:44:55
sudo ip link set dev eth0 up

The change lasts until reboot. Only change addresses on your own lab machines; doing it on a managed network can trigger port security and break your connection. Switches with port security can limit how many MAC addresses a port learns and shut the port down if an unexpected one appears, a control covered in switching fundamentals.

MACs inside IPv6 addresses

Older IPv6 systems built the interface ID from the MAC address using modified EUI-64: insert fffe in the middle and flip the U/L bit. 00:1a:2b:3c:4d:5e becomes 021a:2bff:fe3c:4d5e. Because this exposes the hardware address, current systems prefer random interface IDs.

Practical exercise: identify the MACs around you

Use your own computer and home or lab network.

  1. List every interface and its MAC address with ip link show or getmac /v.
  2. For each address, decide whether it is universally or locally administered by checking the second hex digit.
  3. Ping your default gateway, then read its MAC from ip neigh or arp -a and look up the vendor from its OUI.
  4. In Wireshark, capture an ARP request and reply and note the broadcast destination and the unicast reply.
  5. Classify these addresses as unicast, multicast or broadcast: ff:ff:ff:ff:ff:ff, 01:00:5e:00:00:fb, 3c:22:fb:10:20:30, 33:33:00:00:00:01.

Answers for the last step: broadcast, IPv4 multicast, unicast, IPv6 multicast. Layer 2 labs of this kind run through the Networking Foundation course.

Common mistakes

  • Expecting a MAC address to identify a device across the internet, when it never leaves the local link.
  • Relying on MAC filtering as the main Wi-Fi security control.
  • Building DHCP reservations for phones without checking whether they use randomised MACs.
  • Assuming the vendor shown by an OUI lookup is certain, when the address may be locally administered.
  • Changing a MAC address on a managed network and triggering port security.

Frequently asked questions

Is a MAC address unique worldwide?

Burned-in addresses are intended to be unique, but software can change them and randomised addresses are generated locally, so you should not treat a MAC as a reliable global identity.

Can two devices share a MAC address?

On different networks it does not matter. On the same network a duplicate confuses the switch and ARP, and both devices lose connectivity intermittently.

Does IPv6 use ARP?

No. IPv6 uses Neighbor Discovery over ICMPv6, which is explained further in IPv4 and IPv6 compared.

Can a website see my MAC address?

No. The MAC address is replaced at the first router, so remote servers see only IP-level information.

Want to Learn This Properly?

The Networking & Cybersecurity: Foundation & Practical Implementation (Online) turns guides like this into practised skills, with projects on real websites.

WhatsApp Call Us Now

Free counselling

Send an Enquiry

Tell us which course you are interested in. We reply by email or phone with the next batch and how to enrol.

Protected by reCAPTCHA. Google Privacy and Terms apply.

We reply by email or phone within working hours. No spam.