IPv4 Address Classes and Classful Addressing
IPv4 address classes represent a historical method of organizing the 32-bit IPv4 address space into five fixed categories (A–E) based on the first octet's value. While classful addressing has been replaced by CIDR (Classless Inter-Domain Routing) and VLSM (Variable Length Subnet Masking), understanding these classes remains essential for networking certifications and grasping IPv4's architectural evolution.
Key Points
- Classful addressing divides IPv4 into five classes (A–E) determined by the first octet
- Each class has a default subnet mask and predefined address range
- Classes A, B, and C were designed for large, medium, and small networks respectively
- Class D is reserved for multicast traffic; Class E is experimental
- Modern networks use CIDR and VLSM, but classful concepts persist in certifications like CCNA and CompTIA Network+
IPv4 Address Structure Fundamentals
An IPv4 address is a 32-bit identifier displayed as four decimal octets separated by periods (e.g., 192.168.1.1). This structure provides approximately 4.29 billion unique addresses, ranging from 0.0.0.0 to 255.255.255.255.
Critical Concept: In classful addressing, the value of the first octet determines which class an address belongs to.
The Five Address Classes
Class A: Large Networks
- First Octet Range:
0–127 - Full Address Range:
0.0.0.0–127.255.255.255 - Default Subnet Mask:
255.0.0.0(/8) - Network/Host Bits: 8 bits for network, 24 bits for hosts
- Capacity: 126 networks, ~16.7 million hosts per network
- Historical Use: Massive organizations and ISPs
Example: 10.0.0.1 is a Class A address
Class B: Medium Networks
- First Octet Range:
128–191 - Full Address Range:
128.0.0.0–191.255.255.255 - Default Subnet Mask:
255.255.0.0(/16) - Network/Host Bits: 16 bits for network, 16 bits for hosts
- Capacity: 16,384 networks, ~65,534 hosts per network
- Historical Use: Universities and mid-sized enterprises
Example: 172.16.0.1 is a Class B address
Class C: Small Networks
- First Octet Range:
192–223 - Full Address Range:
192.0.0.0–223.255.255.255 - Default Subnet Mask:
255.255.255.0(/24) - Network/Host Bits: 24 bits for network, 8 bits for hosts
- Capacity: ~2 million networks, 254 hosts per network
- Historical Use: Small businesses and branch offices
Example: 192.168.1.1 is a Class C address
Class D: Multicast
- First Octet Range:
224–239 - Full Address Range:
224.0.0.0–239.255.255.255 - Purpose: One-to-many communication (video streaming, routing protocols like OSPF)
- No subnet mask – not assigned to individual hosts
- Not routable in traditional unicast fashion
Class E: Experimental
- First Octet Range:
240–255 - Full Address Range:
240.0.0.0–255.255.255.255 - Purpose: Reserved for research and future use
- Not routable on the public internet
- Never assigned to production networks
Quick Reference Table
| Class | First Octet | Address Range | Default Mask | CIDR | Primary Use |
|---|---|---|---|---|---|
| A | 0–127 | 0.0.0.0 – 127.255.255.255 | 255.0.0.0 | /8 | Large networks |
| B | 128–191 | 128.0.0.0 – 191.255.255.255 | 255.255.0.0 | /16 | Medium networks |
| C | 192–223 | 192.0.0.0 – 223.255.255.255 | 255.255.255.0 | /24 | Small networks |
| D | 224–239 | 224.0.0.0 – 239.255.255.255 | N/A | N/A | Multicast |
| E | 240–255 | 240.0.0.0 – 255.255.255.255 | N/A | N/A | Experimental |
Why Classful Addressing Became Obsolete
Inefficiency and Waste
Classful addressing created massive inefficiencies in address allocation. A Class A network provided over 16 million host addresses, but most organizations needed only thousands. A Class C network offered just 254 hosts, often too few for growing businesses.
Inflexibility
Default subnet masks couldn't adapt to real-world requirements. Organizations were forced to choose between too many addresses (wasting space) or too few (limiting growth).
The CIDR Solution
Introduced in 1993, CIDR eliminated class boundaries by using slash notation (e.g., /26, /22) to specify exact subnet sizes. This allowed:
- Flexible subnetting: Create networks of any size
- Route aggregation: Combine multiple networks into single routing entries
- Address conservation: Allocate only the addresses actually needed
Modern Example: Instead of using an entire Class C (
/24= 254 hosts), a small office can use/27(30 hosts), conserving 224 addresses for other uses.
Practical Example: Home Network Analysis
Consider a typical home router configuration:
IP Address: 192.168.1.10
- First Octet:
192→ Class C - Classful Default:
/24(255.255.255.0) - Network:
192.168.1.0/24(254 usable hosts)
Modern VLSM Alternative:
- Subnet into
/26blocks: Four subnets of 62 hosts each 192.168.1.0/26(hosts 1–62)192.168.1.64/26(hosts 65–126)192.168.1.128/26(hosts 129–190)192.168.1.192/26(hosts 193–254)
Common Mistakes to Avoid
- Assuming default masks are mandatory: Modern networks use CIDR; class-based masks are historical references only
- Confusing address class with private IP ranges:
192.168.0.0/16is technically Class C space but commonly used with/24or smaller subnets - Attempting to assign Class D/E addresses to hosts: These ranges serve special purposes and cannot be used for standard devices
- Ignoring CIDR in practice: Certifications test classful knowledge, but real networks require CIDR/VLSM skills
- Forgetting special addresses:
127.0.0.0/8(loopback) is Class A but reserved for localhost
Certification Relevance
While obsolete in practice, classful addressing appears frequently in:
- CCNA (Cisco Certified Network Associate)
- CompTIA Network+
- CompTIA Security+
- JNCIA (Juniper Networks Certified Associate)
Exam questions often test your ability to:
- Identify address class from the first octet
- Recall default subnet masks
- Understand why CIDR replaced classful addressing
- Calculate subnets using both methods
Learn More
Related Topics
- CIDR Notation: How slash notation (
/24,/26) enables precise subnet sizing - **VLSM (Variable