Think of networking like a city postal system:
An IP Address (Internet Protocol Address) is a unique number assigned to every device on a network.
192.168.1.12001:0db8:85a3::8a2e:0370:7334A MAC Address (Media Access Control) is a physical hardware address of your device.
| Feature | IP Address π | MAC Address π§ |
|---|---|---|
| Type | Logical | Physical |
| Changes? | Yes (dynamic/static) | No (fixed) |
| Purpose | Identify network | Identify device |
| Layer | Network Layer | Data Link Layer |
A Subnet (Subnetwork) divides a large network into smaller parts.
192.168.1.0255.255.255.0π This means: - First 3 parts = network - Last part = devices
CIDR (Classless Inter-Domain Routing) is a compact way to represent IP ranges.
/24 β first 24 bits are network| CIDR | Subnet Mask | Devices |
|---|---|---|
| /24 | 255.255.255.0 | 256 |
| /16 | 255.255.0.0 | 65,536 |
| /8 | 255.0.0.0 | Huge |
Check IP Address:
- ipconfig # Windows
- ifconfig # Linux/Mac
Check MAC Address:
- getmac # Windows
- ip link # Linux
IP = Where you are
MAC = Who you are
Subnet = Your group
CIDR = Group size
Hosting a website β IP matters
Debugging internet β MAC matters
Using VPS β CIDR & subnet matter
π Part 2: How Internet Works (Step-by-Step)