Fundamentals 7 min read

Why MAC and IP Addresses Exist: A Practical Guide to Network Identification

This article explains the purposes of MAC and IP addresses, how they are structured, their role in network communication, and why MAC addresses can be duplicated across different LANs while IP addresses remain unique within a network.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Why MAC and IP Addresses Exist: A Practical Guide to Network Identification

MAC and IP Address Fundamentals

MAC addresses are 48‑bit hardware identifiers stored in a device’s firmware. They are expressed as six groups of two hexadecimal digits separated by colons (e.g., AA:BB:CC:DD:EE:FF). The first 24 bits (the OUI) are assigned by the IEEE to the manufacturer; the remaining 24 bits are allocated by the manufacturer, guaranteeing global uniqueness for each network interface. Manufacturers must obtain an OUI from the IEEE, typically for a fee.

IP addresses are 32‑bit (IPv4) or 128‑bit (IPv6) logical identifiers assigned to hosts and networks. They enable routing across different subnets and can be changed freely as long as there are no address conflicts within the same broadcast domain.

Evolution of LAN Architecture

Early Ethernet used hubs, which broadcast every frame to all ports. Each Ethernet frame contains a source and destination MAC address, and a host processes only frames whose destination MAC matches its own.

In modern switched LANs, switches learn MAC addresses from incoming frames and forward frames only to the appropriate port, making duplicate MAC addresses on the same segment problematic.

ARP Process

Within a LAN, hosts use the Address Resolution Protocol (ARP) to map an IP address to a MAC address:

The source host broadcasts an ARP request to the Ethernet broadcast address FF:FF:FF:FF:FF:FF asking “Who has IP X.X.X.X?”.

All devices receive the request; only the device whose IP matches the query replies with its MAC address.

The source updates its ARP cache with the returned MAC and sends the Ethernet frame directly to that MAC.

MAC Address Duplication

Although the IEEE allocates unique OUIs, MAC addresses can be duplicated intentionally:

Operating systems allow administrators to override the factory MAC (e.g., ifconfig eth0 hw ether 00:11:22:33:44:55 on Linux).

Virtualization platforms (VMware, VirtualBox, Docker) can assign arbitrary MACs to virtual NICs.

Some hardware permits re‑programming the EEPROM/BIOS to change the burned‑in address.

Duplicate MACs are only an issue when they appear on the same Layer‑2 segment; across different LANs they coexist without conflict.

Address‑Space Comparison

IPv4 provides 2³² ≈ 4.3 billion addresses, a pool that was exhausted for public allocation around 2019. MAC addresses offer 2⁴⁸ ≈ 281 trillion possible values, more than 60 000 times larger than the IPv4 space, making exhaustion unlikely. Consequently, MAC address reuse is acceptable as long as duplicates are not present in the same broadcast domain.

Key Takeaways

MAC addresses uniquely identify a network interface on a local segment; they are fixed by the manufacturer but can be overridden in software or firmware.

IP addresses provide logical, routable identifiers for hosts across networks; they can be reassigned without hardware changes.

ARP resolves IP‑to‑MAC mappings within a LAN, enabling IP‑based communication over Ethernet.

Switches rely on unique MAC addresses for efficient forwarding; duplicate MACs on the same switch cause traffic ambiguity.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

IP addressARPMAC addressIEEE
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.