IPv4 Address Classes and Classful Addressing
IPv4 address classes represent a foundational method for organizing the 32-bit IPv4 address space into five fixed categories (A–E) based on the first octet's value. Though classful addressing has been largely replaced by CIDR (Classless Inter-Domain Routing) and VLSM (Variable Length Subnet Masking), understanding these classes is critical 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 and unused in production.
- Modern networks rely on 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 the address class.
The Five IPv4 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 (e.g., 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 led to massive inefficiencies. For example:
- A Class A network provided 16.7 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)
- Too few addresses (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. Benefits include:
- Flexible subnetting: Create networks of any size.
- Route aggregation: Combine multiple networks into single routing entries.
- Address conservation: Allocate only the addresses needed.
Modern Example: Instead of using an entire Class C (
/24= 254 hosts), a small office can use/27(30 hosts), conserving 224 addresses.
Practical Example: Home Network Analysis
Scenario: A typical home router configuration with IP 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.
- Confusing address class with private IP ranges:
192.168.0.0/16is technically Class C but often used with/24or smaller subnets. - Assigning 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
Classful addressing appears in key networking certifications, including:
- CCNA (Cisco Certified Network Associate)
- CompTIA Network+
- CompTIA Security+
- JNCIA (Juniper Networks Certified Associate)
Exam Focus Areas:
- Identify address class from the first octet.
- Recall default subnet masks.
- Explain 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 Length Subnet Masking): Advanced subnetting techniques for efficient address allocation.
- Private vs. Public IP Ranges: Differences between RFC 1918 addresses and routable IPs.
- IPv6 Fundamentals: The successor to IPv4, addressing its limitations.