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 address | IP address | |
|---|---|---|
| Layer | Layer 2 (data link) | Layer 3 (network) |
| Scope | Local network segment | End to end across networks |
| Assigned by | Manufacturer (or randomised by the device) | DHCP or manual configuration |
| Example | 3C:52:A1:12:34:56 | 192.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.
Related
Keep reading
Port security and MAC limiting
Read more →What is DHCP?
Read more →Find and fix IP address conflicts
Read more →Private 5G vs Wi-Fi for Enterprises: Which Wireless Technology Fits?
Compare private cellular networks and enterprise Wi-Fi for factories, ports, campuses and warehouses: coverage, mobility, device support, spectrum, cost and when to combine both.
Read more →What Is Port Security on a Switch? Stop Unknown Devices From Connecting
Switch port security explained: limiting MAC addresses per port, sticky learning, violation modes (protect, restrict, shutdown), when to use it and how it compares with 802.1X.
Read more →Warehouse and Logistics Network Design: Scanners, Cameras and Automation
How to design networks for warehouses and logistics centres: Wi-Fi for scanners and vehicles, outdoor yards and docks, CCTV, industrial switches for automation, and resilience.
Read more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.