A MAC address (media access control address) is a 48-bit hardware address that identifies a network interface, such as a laptop's Wi-Fi card or a printer's Ethernet port, to other devices on the same local network. Switches and access points use MAC addresses to deliver traffic inside your office, while IP addresses carry it between networks, so a MAC address never travels past your router onto the internet.
Every Ethernet port and Wi-Fi radio has one. A device with both a wired and a wireless connection has two MAC addresses, one per interface. The address is set at the factory, although the operating system can present a different one, which is how randomized addresses work.
What a MAC address looks like
A MAC address is 48 bits, written as 12 hexadecimal digits in six pairs. Different systems punctuate it differently, but these are the same address:
- 00:00:5E:00:53:01 (colons, common on Mac, Linux and network gear)
- 00-00-5E-00-53-01 (hyphens, common on Windows)
- 0000.5e00.5301 (dots, used by some switch vendors)
That example comes from a block the IETF set aside for documentation, so it belongs to no real device. The first half of a factory address is the OUI (organizationally unique identifier), a prefix the IEEE assigns to each manufacturer. The second half is a serial number the maker assigns. Because of the OUI, a network tool can often tell you who made a device from its MAC address alone.
Two bits in the first pair have special meanings. One marks the address as locally administered, meaning software set it instead of the factory. The other marks it as a group address for multicast. The all-ones address, FF:FF:FF:FF:FF:FF, is the broadcast address that every device on the local network listens to.
MAC address vs IP address
| MAC address | IP address | |
|---|---|---|
| Identifies | A network interface (the hardware) | A device's location on a network |
| Size | 48 bits | 32 bits (IPv4) or 128 bits (IPv6) |
| Assigned by | The manufacturer, or software when randomized | The network, usually by DHCP or by hand |
| Reach | The local network only | Across networks and the internet |
| Used by | Switches and access points | Routers and firewalls |
| Changes when you move offices | No | Usually yes |
| OSI layer | Layer 2 (data link) | Layer 3 (network) |
A simple way to hold the difference: the IP address is the mailing address, and the MAC address is the name on the door at the last stop. Your carrier and the internet only ever see your public IP address. Our guide to public vs private IP addresses and NAT explains how that one address is shared by everything inside.
How switches learn MAC addresses
A switch keeps a MAC address table that maps each address to a port. When a frame arrives, the switch records the sender's address against the port it came in on. When a frame is addressed to a device already in the table, the switch sends it out that one port. When the destination is unknown, it sends the frame out every port on that network, and the reply teaches it where the device lives. Entries expire after a few minutes of silence, so the table stays current as devices move. Our router vs switch page covers that forwarding in more depth.
A managed switch lets you look up that table, which is often the fastest way to find which port a misbehaving device is plugged into. On a network split into VLANs, the switch keeps a separate table for each VLAN. Our guide to managed vs unmanaged switches covers which switch features are worth paying for.
ARP: connecting IP addresses to MAC addresses
Devices address each other by IP, but the frame on the wire needs a MAC address. On IPv4 networks, ARP (Address Resolution Protocol) bridges the gap.
- A laptop wants to send to 192.168.10.20 on its own network, and does not know that device's MAC address.
- It broadcasts an ARP request: who has 192.168.10.20?
- The device with that address replies with its MAC address.
- The laptop stores the answer in its ARP cache for a while and sends the traffic.
For anything outside the local network, the laptop asks for the MAC address of its default gateway, the router, and sends everything there. Each router along the way rewrites the frame with new MAC addresses for the next hop, which is why your laptop's MAC address stops at your own router. IPv6 does the same job with a protocol called Neighbor Discovery.
Randomized and private MAC addresses
Because a factory MAC address never changes, it can be used to track a phone or laptop from one Wi-Fi network to the next. Recent versions of the major phone and laptop operating systems therefore present a random, locally administered address to each Wi-Fi network, and some change it over time. Settings and defaults differ by operating system and version.
For a business network this has side effects:
- DHCP reservations tied to a MAC address stop matching when the address changes. Our DHCP page explains reservations.
- Guest portals that remember devices by MAC address may ask people to sign in again.
- Device counts and logs can show one phone as several devices.
- MAC-based allow lists stop recognizing staff devices.
A randomized address is easy to spot: the second digit of the first pair is 2, 6, A or E. Staff devices can usually be set to use the hardware address on the company network, and guest devices can be left as they are.
Why MAC filtering is weak security
MAC filtering lets only listed addresses join a network. It sounds tight, and it stops only casual use. Wi-Fi sends MAC addresses unencrypted in every frame, so anyone nearby with a wireless tool can see an allowed address, and most devices can be set to use any address their owner chooses. Randomized addresses also break the allow list for legitimate users.
Stronger controls are WPA3 or WPA2 with a strong passphrase for small networks, individual sign-in with 802.1X for staff on larger ones, and separate networks for guests and devices. Our guide to guest Wi-Fi security walks through that setup. MAC addresses remain useful for inventory, troubleshooting and switch port security that limits how many addresses one port accepts, as long as nobody treats them as the only lock.
How to find a MAC address
- On the device. Printers, phones, access points and cameras often have it on a label, sometimes marked MAC, HW or Ethernet ID.
- In the operating system. The network or Wi-Fi details screen lists it, sometimes as the physical or hardware address. On Windows, the ipconfig /all command shows it.
- From the network. The router's DHCP lease list and a managed switch's MAC table show every address the network has seen, with its IP address or port.
On a phone, check whether the address shown is the private one for that network or the hardware one, because they differ.
How FiberX helps
FiberX gets quotes from several carriers for your address, and we can quote managed network services that cover switches, Wi-Fi and segmentation, along with managed security if you want access control handled for you. The carrier pays us, so there is no markup. Request a quote, or call or text 478-758-8091.