Types & Classes of IPv4

🌐 Types of IPv4 Addresses

🌍 Public IP

Internet-accessible

Assigned by ISP

Example: 8.8.8.8

🏠 Private IP

Used inside the LAN

Not internet routable

📍 Ranges

10.0.0.0 – 10.255.255.255

172.16.0.0 – 172.31.255.255

192.168.0.0 – 192.168.255.255

🔁 Loopback

127.0.0.1

Used for testing

⚡ APIPA

169.254.x.x

Indicates DHCP failure

📡 Multicast

224–239.x.x

One-to-many communication

🌐 IPv4 Classes

ClassRangeUse
A1–126Large networks
B128–191Medium networks
C192–223Small networks
D224–239Multicast
E240–255Reserved

🧠 Memory Trick

👉 A = Big
👉 B = Medium
👉 C = Small
👉 D = Data
👉 E = Experimental

🎯 Interview Focus

What are private IP ranges?
Private IP ranges are reserved IP blocks used within local networks, including 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.

What is APIPA?
APIPA is an automatic IP assignment (169.254.x.x) given when a device fails to obtain an IP address from a DHCP server.

What is Loopback address?
Loopback address (127.0.0.1) is used to test the TCP/IP stack of a device.

What is Multicast?
Multicast is a communication method where one sender transmits data to multiple receivers simultaneously.