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 →Will My Network Keep Working if Cloud Management Goes Down?
Cloud management is convenient, but the network must not depend on it. What should keep working during a cloud outage, what pauses, and what to check when you choose equipment.
Read more →NOC vs SOC: What Is the Difference and Do You Need Both?
A NOC keeps the network running; a SOC keeps attackers out. Compare their goals, tools, alerts and metrics, and see how small and mid-size organisations can combine them.
Read more →The CIA Triad in Practice: Confidentiality, Integrity and Availability on Real Networks
Confidentiality, integrity and availability are the base of information security. See what each one means for switches, Wi-Fi, gateways and cameras, with practical controls for each.
Read more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.