Packet.School
HomeLevelsSandboxFreeAbout
XP0
L1 · Basic Concepts
Level 1
5 lessons
  • 01What is a Network?
  • 02IP Address
  • 03MAC Address
  • 04LAN, WAN and Internet
  • 05Level 1 Quiz
Levels/L1 · Basic Concepts/Lesson 03
Lesson · 03

MAC Address

A MAC (Media Access Control) address is the physical address written into every network interface by its manufacturer. An IP address is assigned later and changes; a MAC address ships with the hardware.

Duration
2min
Level
L1
Type
Lesson
Progress
3/ 5

01IP vs MAC

FeatureIP addressMAC address
Changes?Yes — network to networkNo*
Assigned byDHCP / adminManufacturer
Format192.168.1.1AA:BB:CC:DD:EE:FF
LayerLayer 3 (Network)Layer 2 (Data Link)
ScopeEnd to endLocal network only

*It can be changed in software (MAC spoofing), but the hardware record is fixed.

The first half identifies the maker: AA:BB:CC is the vendor code (OUI), DD:EE:FF is the per-device serial. That's why you can look at a MAC address and say "that's an Apple card."

02How do the two work together?

When you send a packet, two questions get answered in order:

  1. IP address → which network should this go to?
  2. MAC address → which device inside that network gets it?

Courier analogy: IP finds the city and neighborhood, MAC delivers to the door. On the local network, the protocol that asks "who owns this IP's MAC?" is called ARP — and in later lessons you'll see how switches build tables of these addresses.

Keep in mind
A MAC address never travels past a router. At every router hop the packet gets a fresh MAC pair, while the IP addresses stay the same for the whole journey.

03Seeing your MAC address

Operating systemCommand
Windowsgetmac or ipconfig /all
Macifconfig (the ether line)
Linuxip link show
Sandbox · CommandTerminalFind the MAC (physical address) line in the ipconfig output — try it in the safe simulator.Open tool

04Summary

  • MAC = physical address burned into hardware, used for local delivery
  • IP = logical address, used for travel between networks
  • IP finds the city, MAC knocks on the door — they work as a pair
Previous
IP Address
Next
LAN, WAN and Internet
On this page
  • IP vs MAC
  • How do the two work together?
  • Seeing your MAC address
  • Summary
Packet.School

An open, interactive curriculum for computer networking.

v3.0 · MIT22 lessons live

Learn

  • Lessons
  • Sandbox
  • Levels
  • Free
  • About

Simulations

  • Packet Journey
  • DNS Lookup
  • DHCP Simulator
  • Subnet Calc
  • Network Builder
  • Terminal

Project

  • About
  • Changelog
  • GitHub
  • Contributing
  • Style guide

Newsletter

One short email when a new level ships. No tracking pixels.

© 2026 Packet.School — MIT licensedSupport with a coffeebuilt in the open