IP & MAC Addresses

Test yourself on IP & MAC Addresses with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on IP & MAC AddressesGet your flashcardsBuild my revision planTrack my progress

The Two Types of Addresses

Every device on a network needs TWO addresses: an IP address (logical, can change, like your home address - identifies WHERE you are) and a MAC address (physical, permanent, like your fingerprint - identifies WHO you are). IP addresses are used for routing across networks (Internet layer). MAC addresses are used for local delivery (Link layer). Think of sending a letter: the postal address (IP) gets it to the right town, the recipient's name (MAC) ensures it reaches the right person!
An example IP address, 192.168.1.42, as four groups of numbers separated by dots. An example MAC address, A4:C3:F0:12:AB:7E, as six pairs of hexadecimal digits separated by colons.

An IP address is used to route data between networks. A MAC address is used to deliver data locally, to the right device on the same network. IP addresses are in the OCR and Edexcel specifications. MAC addresses are in the AQA and OCR specifications.

IP Addresses (Internet Protocol)

What is an IP Address?

A logical address assigned to devices on a network. Used to identify the device's location for routing data across networks.

  • Purpose: Identify device location on network for routing
  • Can change: Assigned by network (DHCP) or configured manually
  • Two versions: IPv4 (32-bit) and IPv6 (128-bit)
  • Operates at: Internet layer (Layer 2 of TCP/IP)
  • Analogy: Like a postal address - identifies WHERE device is

IPv4 Format:

  • 32 bits = 4 bytes (octets)
  • Dotted decimal notation: 192.168.1.1
  • Four numbers separated by dots, each 0-255
  • Example: 192.168.1.100, 10.0.0.5, 172.16.0.1
  • Total addresses: ~4.3 billion (2^32)
  • Problem: Running out due to billions of devices!

IPv6 Format:

  • 128 bits = 16 bytes
  • Hexadecimal notation: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
  • Eight groups of 4 hex digits separated by colons
  • Example: 2001:0db8::1 (shortened form)
  • Total addresses: 340 undecillion (virtually unlimited)
  • Why needed: IPv4 addresses exhausted, IPv6 ensures we never run out

Special IP Address Ranges:

  • 127.0.0.1: Localhost (loopback) - refers to your own computer
  • 192.168.x.x: Private network (home/office LANs)
  • 10.x.x.x: Private network (large organizations)
  • 0.0.0.0: Default route / unspecified address

MAC Addresses (Media Access Control)

What is a MAC Address?

A physical hardware address permanently burned into every Network Interface Card (NIC) at the factory. Uniquely identifies the physical device.

  • Purpose: Uniquely identify physical network hardware
  • Permanent: Cannot be changed (burned into NIC at manufacture)
  • 48 bits: 6 bytes (octets)
  • Operates at: Link layer (Layer 1 of TCP/IP)
  • Analogy: Like a fingerprint or serial number - identifies WHO device is

MAC Address Format:

  • 48 bits written as 12 hexadecimal digits
  • Format: AA:BB:CC:DD:EE:FF or AA-BB-CC-DD-EE-FF
  • Example: 00:1A:2B:3C:4D:5E
  • First 3 bytes (24 bits): Manufacturer ID (OUI - Organizationally Unique Identifier)
  • Last 3 bytes (24 bits): Device serial number (assigned by manufacturer)

MAC Address Examples:

00:1A:2B:3C:4D:5E - Apple device
00:50:56:XX:XX:XX - VMware virtual NIC
08:00:27:XX:XX:XX - VirtualBox virtual NIC
(First 3 bytes identify manufacturer)

Where MAC Addresses are Used:

  • Local delivery: Switches use MAC to deliver frames to correct device on LAN
  • ARP (Address Resolution Protocol): Maps IP addresses to MAC addresses
  • Network filtering: Routers can allow/block specific MAC addresses
  • Device tracking: MAC address can identify specific hardware

IP vs MAC Addresses - Direct Comparison

Aspect IP Address MAC Address
Type Logical / Software address Physical / Hardware address
Permanence Can change (dynamic assignment) Permanent (burned into NIC)
Size IPv4: 32 bits. IPv6: 128 bits 48 bits (6 bytes)
Format IPv4: 192.168.1.1
IPv6: 2001:0db8::1
AA:BB:CC:DD:EE:FF
Notation Decimal (IPv4) or Hex (IPv6) Hexadecimal
Assigned By Network (DHCP) or manual config Manufacturer at factory
Identifies Device location (WHERE) Physical device (WHO)
Scope Global (unique across Internet) Globally unique (but used locally)
TCP/IP Layer Internet layer (Layer 2) Link layer (Layer 1)
Used For Routing across networks Local delivery within LAN
Analogy Postal address (location) Fingerprint (identity)
Example 192.168.1.100 00:1A:2B:3C:4D:5E

Deep Dive: Why Both Addresses are Needed

Imagine sending a package across the country - you need BOTH types of addressing:

IP Address (Postal Address):

  • Gets package to the right city, street, building (routing across networks)
  • Can change if you move house (dynamic IP assignment)
  • Postal service uses this to route package efficiently
  • Network equivalent: Routers use IP to route packets across the Internet

MAC Address (Recipient Name/ID):

  • Ensures package reaches the right PERSON at that address (local delivery)
  • Stays with you even if you move (permanent hardware ID)
  • Final delivery person uses this to hand package to correct recipient
  • Network equivalent: Switches use MAC to deliver frames to correct device on LAN

The Complete Journey:

1. Your computer (IP: 192.168.1.5, MAC: AA:BB:CC:DD:EE:FF)
2. Wants to reach web server (IP: 151.101.0.81)
3. Packet has destination IP 151.101.0.81 (for routing)
4. Routers across Internet use IP to route packet
5. Packet arrives at destination network
6. Local switch uses MAC address to deliver to exact server
7. Both addresses needed: IP for journey, MAC for final delivery!

ARP - Address Resolution Protocol

The Bridge Between IP and MAC

ARP maps IP addresses to MAC addresses on a local network. When a device knows the destination IP but needs the MAC address for local delivery, it uses ARP.

How ARP Works:

  • Scenario: Computer A (192.168.1.5) wants to send data to Computer B (192.168.1.10)
  • Problem: Computer A knows IP (192.168.1.10) but needs MAC address
  • Step 1: Computer A broadcasts ARP request: "Who has 192.168.1.10?"
  • Step 2: Computer B responds: "I'm 192.168.1.10, my MAC is XX:XX:XX:XX:XX:XX"
  • Step 3: Computer A now knows both IP and MAC, can send data
  • Caching: Computer A stores this in ARP cache for future use

Exam Tips - IP and MAC Addresses

Most common exam questions:

  • "Difference IP vs MAC?" → IP can change (logical), MAC is permanent (physical/burned into hardware)
  • "Why was IPv6 developed?" → IPv4 running out of addresses (4.3 billion not enough for all devices)
  • "IPv4 vs IPv6 size?" → IPv4 = 32 bits, IPv6 = 128 bits
  • "MAC address size?" → 48 bits (6 bytes in hexadecimal)
  • "Which layer IP?" → Internet layer (Layer 2 of TCP/IP)
  • "Which layer MAC?" → Link layer (Layer 1 of TCP/IP)
  • "What is MAC address?" → Permanent physical address burned into NIC at factory

Key facts to memorize:

Aspect IP Address MAC Address
Type Logical (can change) Physical (permanent)
Size IPv4: 32-bit, IPv6: 128-bit 48-bit
Format 192.168.1.1 (IPv4) AA:BB:CC:DD:EE:FF
Purpose Routing (WHERE) Local delivery (WHO)

Common mistakes to avoid:

  • Confusing which is permanent - MAC is permanent, IP can change!
  • Forgetting IPv4 vs IPv6 bit sizes (32 vs 128)
  • Not explaining WHY both needed (IP for routing, MAC for local delivery)
  • Thinking MAC can be changed - it's burned into hardware at factory

Perfect exam answer:

"Explain the difference between IP and MAC addresses" (3 marks):

IP address is logical and can change (1 mark).
MAC address is physical and permanent, burned into NIC (1 mark).
IP used for routing across networks, MAC used for local delivery (1 mark).

Quick Reference - IP and MAC Addresses

IP Address (Internet Protocol):

  • Type: Logical / software address
  • Can change: Assigned by DHCP or manual config
  • IPv4: 32-bit, format 192.168.1.1 (4.3 billion addresses)
  • IPv6: 128-bit, format 2001:0db8::1 (virtually unlimited)
  • Purpose: Routing packets across networks (WHERE device is)
  • Layer: Internet layer (TCP/IP Layer 2)

MAC Address (Media Access Control):

  • Type: Physical / hardware address
  • Permanent: Burned into NIC at factory (cannot change)
  • Size: 48-bit (6 bytes)
  • Format: AA:BB:CC:DD:EE:FF (hexadecimal)
  • Purpose: Local delivery on LAN (WHO device is)
  • Layer: Link layer (TCP/IP Layer 1)

The Golden Rule:

IP = Logical, can change, for routing (postal address). MAC = Physical, permanent, for local delivery (fingerprint). BOTH are needed: IP to route across Internet, MAC to deliver on local network!

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.