MAC Address = A unique 48-bit identifier permanently burned into
a NIC that identifies a device on a local network (LAN).
Example: A3 : B2 : C1 : D4 : E5 : F6
────────────── ──────────────
First 3 pairs Last 3 pairs
Manufacturer ID Device ID| ✅ Advantage | ❌ Disadvantage |
|---|---|
| Prevents unauthorised devices connecting | MAC addresses can be spoofed (faked) |
| Easy to implement | Time-consuming to manage on large networks |
IP Address = A numerical label assigned to every device on a network
used to identify and locate it for communication purposes.
Example: 192 . 168 . 1 . 1
───────────────────────────
32 bits total (4 × 8 bits)| Feature | IPv4 | IPv6 |
|---|---|---|
| Bit length | 32 bits | 128 bits |
| Format | Decimal, dotted (e.g. 192.168.1.1) | Hexadecimal, colon-separated |
| Total addresses | ~4.3 billion | ~340 undecillion |
| Address exhaustion | ✅ Running out | ❌ Not an issue |
| Example | 192.168.1.1 | 2001:0db8:85a3::8a2e:0370:7334 |
| Type | Description | Assigned by | Changes? |
|---|---|---|---|
| Static IP | Permanently fixed address | Manually by admin | ❌ Never |
| Dynamic IP | Temporary address assigned each session | Router via DHCP | ✅ Can change |
| Address Type | Real-World Equivalent |
|---|---|
| IP Address | The postal address of a building (used to navigate to the right location) |
| MAC Address | The name on the door of a specific flat inside that building |
ARP = A protocol that maps a known IP address to its corresponding
MAC address on a local network.
| Type | Description | Example Range |
|---|---|---|
| Private IP | Used within a local network (LAN) — not routable on the internet | 192.168.x.x / 10.x.x.x |
| Public IP | Assigned by the ISP — used to identify the network on the internet | Varies — assigned by ISP |
| Feature | MAC Address | IP Address |
|---|---|---|
| Full name | Media Access Control Address | Internet Protocol Address |
| Purpose | Identify device on local network | Identify device across networks |
| Assigned by | Manufacturer | Network / Router (DHCP) |
| Permanent? | ✅ Yes — fixed at manufacture | ❌ No — can change |
| Length | 48 bits | 32 bits (IPv4) / 128 bits (IPv6) |
| Format | Hexadecimal pairs (AA:BB:CC:DD:EE:FF) | Decimal dotted (192.168.1.1) |
| Scope | Local network (LAN) only | Local and wide area (WAN/Internet) |
| Layer | Data Link Layer | Network Layer |
| Used by | Switch | Router |
| Can be changed? | ❌ No (can be spoofed but not truly changed) | ✅ Yes |
| Unique globally? | ✅ Yes | ✅ Public IPs yes / Private IPs no |
| Term | Definition |
|---|---|
| MAC Address | A unique 48-bit permanent hardware address assigned to a NIC |
| IP Address | A logical address assigned to a device for network communication |
| IPv4 | 32-bit IP address format — approximately 4.3 billion addresses |
| IPv6 | 128-bit IP address format — created due to IPv4 exhaustion |
| Static IP | A fixed, manually assigned IP address that never changes |
| Dynamic IP | An IP address assigned automatically by DHCP that can change |
| DHCP | Dynamic Host Configuration Protocol — automatically assigns IP addresses |
| ARP | Address Resolution Protocol — maps an IP address to a MAC address |
| OUI | Organisationally Unique Identifier — first 3 pairs of a MAC address identifying the manufacturer |
| NAT | Network Address Translation — maps private IPs to a public IP |
| Private IP | An IP address used within a local network, not routable on the internet |
| Public IP | An IP address assigned by an ISP, used to identify a network on the internet |
| Switch | A network device that uses MAC addresses to forward data |
| Router | A network device that uses IP addresses to route data between networks |