Wesloo
All topicsTopics

Networks and Wi-Fi

MAC Address How It Works: Local Network Guide

Short answer

A Media Access Control (MAC) address is a twelve-digit hexadecimal identifier assigned to a network interface controller for local communications. It operates at the data link layer to direct frames between devices sharing the same network segment. While IP addresses route traffic across interconnected internet paths, network hardware relies on the MAC address to pinpoint the exact physical recipient of each transmission.

Key points

  • Operates at Layer 2 (Data Link Layer) of the OSI model to identify physical network interfaces.
  • Typically structured as a 48-bit identifier split into an organizationally unique manufacturer prefix and a device-specific suffix.
  • Ethernet switches use MAC address tables to forward frames directly to destination ports instead of broadcasting across the entire network.
  • Address Resolution Protocol (ARP) translates logical IPv4 addresses into physical MAC addresses for local delivery.

When examining a mac address how it works across modern computing hardware, it is helpful to look at how data moves across physical circuits before reaching the internet. A Media Access Control (MAC) address operates as a unique hardware identifier embedded into network interface controllers (NICs), including Wi-Fi adapters and Ethernet cards. While an Internet Protocol (IP) address establishes a logical location across wide-area networks, the MAC address pinpoints the specific physical interface that transmits and receives raw frames on a shared physical cable or radio frequency.

The Structure and Format of Hardware Addresses

Most local network hardware follows the EUI-48 standard defined by the IEEE. An EUI-48 identifier consists of 48 bits, which corresponds to six bytes or twelve hexadecimal characters. These characters range from 0 through 9 and A through F, typically arranged into six pairs separated by colons or hyphens. For example, a network interface may display an address such as 00:14:22:01:23:45 or 00-14-22-01-23-45.

This twelve-character sequence divides into two equal functional halves:

  • Organizationally Unique Identifier (OUI): The first 24 bits (the first six characters) identify the adapter manufacturer. Companies like Cisco, Dell, and Intel purchase these blocks directly from the IEEE Registration Authority. For instance, Dell hardware frequently uses the prefix 00-14-22. In medium-sized assignment blocks (MA-M), the IEEE manages the first 28 bits, providing 20 bits of space for EUI-48 identifiers.
  • Network Interface Extension Identifier: The final 24 bits (the last six characters) are assigned by the manufacturer to individual chips. This guarantees that no two adapters manufactured under that prefix share the exact sequence.

Beyond physical production lines, virtualization platforms like Xen and QEMU maintain their own registered OUIs. When a hypervisor instantiates a new virtual machine, it assigns a virtual MAC address using its designated manufacturer prefix alongside locally assigned trailing bytes.

MAC Address How It Works in Network Switching

Local Ethernet and Wi-Fi networks transmit data encapsulated in frames rather than high-level packets. Each Layer 2 Ethernet frame wraps around payload data and contains a header with two critical fields: the source MAC address and the destination MAC address. When a computer transmits data, the process follows a structured sequence:

  1. The originating network card writes its own burned-in address into the source field and writes the intended receiver's address into the destination field.
  2. The electrical or radio signal travels directly into an Ethernet switch or wireless access point.
  3. The switch reads the incoming frame and inspects the source MAC address. It records this address alongside the physical port on which the signal arrived, storing the mapping in an internal database called a MAC address table or Content Addressable Memory (CAM) table.
  4. The switch checks the destination MAC address against its existing table. If an entry exists for that hardware address, the switch transmits the frame solely through the designated port.
  5. If the destination address is unknown, the switch broadcasts the frame out of every active port except the port that originally received it. Once the target machine responds, the switch logs its location for subsequent frames.

This hardware-level filtering keeps local data streams separate. Instead of burdening every computer on a local network with unrelated traffic, switches deliver packets exclusively to the intended hardware interface. In complex homes and offices, understanding the difference between a modem and a router clarifies where this Layer 2 local switching boundary gives way to Layer 3 public internet routing.

Because software applications operate using IP addresses rather than hardware identifiers, network systems rely on the Address Resolution Protocol (ARP) on IPv4 networks to bridge the gap. When your computer needs to deliver data to a local server or to the default gateway router, it inspects its local ARP cache for a corresponding hardware address.

If the mapping is absent, your computer issues an ARP request frame addressed to FF:FF:FF:FF:FF:FF. This special broadcast address forces every active network interface on that local segment to inspect the frame. The question embedded in the request asks which physical device owns the target IP address. The matching machine replies directly to your computer using a unicast frame that provides its physical MAC address. Your operating system saves this entry in its ARP cache, encapsulates the outbound data into a standard Layer 2 frame, and directs it to the switch.

This translation happens continuously in the background. Even when performing an external lookup such as a Domain Name System DNS server query to resolve a website hostname, the physical packet leaving your computer is marked with the MAC address of your local default router. The router receives the frame at Layer 2, strips off the local MAC header, examines the Layer 3 IP header, and forwards the packet out to the wider internet.

MAC Address vs. IP Address

Although both identifiers allow devices to communicate, they handle different tasks at different layers of the networking stack. An IP address indicates where a computer is logically positioned on an interconnected network, while a MAC address identifies the physical controller that receives signals on a wire or radio band.

FeatureMAC AddressIP Address
OSI Model LayerLayer 2 (Data Link Layer)Layer 3 (Network Layer)
Scope of OperationLocal network segment onlyGlobal routing across networks
Assignment EntityHardware manufacturer via IEEENetwork administrator or ISP via DHCP
Format Structure48-bit hexadecimal (EUI-48)32-bit dotted decimal (IPv4) or 128-bit hex (IPv6)
PortabilityPermanently attached to interfaceChanges when moving to a new network
Forwarding MechanismNetwork switches (CAM table)Network routers (Routing table)

Frame Delivery Types: Unicast, Multicast, and Broadcast

Ethernet frames are categorized into three delivery models depending on their destination address:

  • Unicast: Targeted to a single physical interface. The least significant bit of the first byte of a unicast address is set to 0. The switch forwards this frame exclusively to the port matching that exact recipient.
  • Multicast: Directed toward a specific group of subscribed stations on the local segment. The least significant bit of the first byte is set to 1. Stations configured to listen to that multicast group accept the frame, while unconfigured network cards ignore it.
  • Broadcast: Addressed to every device on the local network segment using FF:FF:FF:FF:FF:FF. Switches duplicate and distribute broadcast frames across all active ports within the local broadcast domain.

MAC Randomization and Network Security

Historically, a MAC address remained static throughout the lifespan of a physical device. Because public Wi-Fi networks in airports, hotels, and retail stores could log these permanent identifiers to track user movement across geographic locations, modern mobile operating systems implement MAC address randomization.

When connecting to wireless networks, devices running modern versions of Android, iOS, Windows, and macOS generate an ephemeral, randomized hardware address for each Wi-Fi network profile. This changes how client devices interact with wireless access points. When evaluating home infrastructure, such as is mesh WiFi better than range extender hardware, randomized addresses can sometimes cause connected client lists to show unfamiliar device names unless devices are configured to use fixed hardware identifiers for trusted private networks.

System administrators can also modify the transmitted MAC address through software, a technique known as MAC address spoofing. While spoofing helps security researchers test network access control (NAC) policies, it also limits the effectiveness of MAC filtering. Because MAC headers travel unencrypted across local segments, unauthorized users can intercept valid addresses and clone them, meaning hardware filtering cannot serve as a standalone security barrier.

Finding the MAC Address on Your Device

Every operating system provides straightforward methods to inspect local interface hardware addresses:

  • Windows: Open the Command Prompt and type getmac or ipconfig /all. The value listed under "Physical Address" is the MAC address for that specific interface.
  • macOS: Open Terminal and execute ifconfig, or navigate to System Settings, select Network, choose your active connection, and view the Details tab under Hardware.
  • Linux: Run the command ip link show or ip addr in any terminal window. Look for the six-byte hexadecimal string following the label link/ether.
  • Mobile Devices: On iOS and Android, open Settings, select About Phone or General, and locate the entry listed as Wi-Fi Address or Device MAC Address.

Questions people also ask

Can two devices have the same MAC address?

On the same local network segment, duplicate MAC addresses cause collisions and frame delivery errors. However, two devices on completely separate, isolated local networks can technically share the same hardware address without interfering with each other.

Does your MAC address change when you change your Wi-Fi network?

The physical hardware address in your device firmware remains unchanged, but modern operating systems often generate a randomized, private MAC address for each distinct Wi-Fi network to prevent location tracking.

Can websites see my MAC address?

Websites cannot see your MAC address because web traffic travels across Layer 3 IP routing. Your MAC address is only visible to devices on your immediate local network, such as your local router and switch.

Related pages

  • WPA2 vs WPA3 Security: Differences and Router Setup

    WPA2 and WPA3 are encryption protocols designed to shield wireless network traffic from unauthorized access. WPA2 uses a four-way handshake vulnerable to offline dictionary attacks and deauthentication spoofing, whereas WPA3 introduces Simultaneous Authentication of Equals, mandatory management frame protection, and forward secrecy to resist interception.

  • What Is Wi-Fi 6 and How Does It Compare to Wi-Fi 5?

    Wi-Fi 6 is the Wi-Fi Alliance name for IEEE 802.11ax, a wireless standard for 2.4 GHz and 5 GHz networks that is built for homes with many connected devices. It raises theoretical peak speed to 9.6 Gbps and improves efficiency through OFDMA, while Wi-Fi 5 remains adequate for many lighter networks.

  • Public vs Private IP Address: Key Differences

    A public IP address is globally routable and identifies a network on the internet, while a private IP address works only inside a local network. Routers use NAT to let many private devices share one public address. The choice affects reachability, cost, security, and configuration.

  • 2.4 GHz vs 5 GHz Wi-Fi: Which Band Should You Use?

    2.4 GHz Wi-Fi reaches farther and passes through walls more easily, while 5 GHz Wi-Fi is faster and more reliable at short to medium range. Most dual-band routers broadcast both, so the best choice depends on distance, obstacles, and the speed your devices need.

  • Subnet Mask Calculator: How Masks Are Calculated

    A subnet mask is a 32-bit sequence used in IPv4 networking to divide an IP address into a network prefix and a host identifier. Calculation relies on a bitwise AND operation between the binary address and the mask to determine the starting network address, while assigning all host bits to one identifies the broadcast address. Modern network planning relies on Classless Inter-Domain Routing (CIDR) notation to allocate exact address blocks and control traffic boundaries.

  • Is Mesh WiFi Better Than Range Extender Setups?

    Mesh Wi-Fi is generally better than a range extender for medium to large homes requiring broad coverage, fast data rates, and automatic device transitions under a single network name. Range extenders serve as low-cost solutions for bridging coverage into a single dead room. When coverage must span multiple rooms or floors, mesh hardware avoids the severe bandwidth loss and connection drops typical of extenders.

How this page was prepared

Before writing, the topic was researched in the sources below. The page then passed automatic quality checks.

Report a mistake on this page