Networking · 5 min read · 19 November 2026

What Is a MAC Address? How It Differs From an IP Address

MAC addresses explained: what they are, how switches use them, how they differ from IP addresses, MAC randomisation on phones, and why it matters for Wi-Fi and security.

A MAC (Media Access Control) address is a hardware identifier for a network interface, written as six pairs of hexadecimal digits such as 3C:52:A1:12:34:56. Switches use MAC addresses to deliver frames inside a local network; routers use IP addresses to move packets between networks.

MAC vs IP

MAC addressIP address
LayerLayer 2 (data link)Layer 3 (network)
ScopeLocal network segmentEnd to end across networks
Assigned byManufacturer (or randomised by the device)DHCP or manual configuration
Example3C:52:A1:12:34:56192.168.10.25

How switches use MAC addresses

A switch learns which MAC address is behind each port by watching traffic and builds a MAC address table. It then sends frames only to the right port. ARP links IP addresses to MAC addresses inside a subnet.

MAC randomisation

Modern phones and laptops use a random MAC address per Wi-Fi network to protect privacy. This can affect captive portals, MAC-based reservations and device tracking. Use 802.1X or portal sessions rather than relying on fixed MAC addresses for user devices.

Security notes

  • MAC addresses can be spoofed, so MAC filtering alone is weak security.
  • Port security and 802.1X with MAC authentication bypass help control which devices connect.

Related: port security and MAC limiting and finding IP address conflicts.

FAQ

Frequently asked questions

Can two devices have the same MAC address?

It is rare but possible with spoofing or faulty devices, and causes connectivity problems on that network.

Does the MAC address leave my network?

No. Routers replace it at each hop; websites see your public IP address, not your MAC address.

How do I find a device's MAC address?

Check its label, its network settings, or the switch's MAC address table and the DHCP leases.

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.