IP Address Classes A, B, and C: A Simple Networking Guide
IP addresses are an essential part of computer networking. They allow devices to identify each other and communicate across local networks and the internet.
In traditional IPv4 networking, IP addresses are divided into different classes, including Class A, Class B, and Class C. Each class was designed for networks of different sizes.
In this guide, you will learn what IP address classes are, how Classes A, B, and C work, and the differences between them.
What Is an IP Address?
An IP address (Internet Protocol address) is a logical address assigned to a network interface so devices can communicate using the Internet Protocol.
An IPv4 address consists of 32 bits, represented as four decimal numbers separated by dots.
Example:
192.168.1.10
Each number, called an octet, ranges from 0 to 255.
1. Class A IP Address
Class A addresses were designed for very large networks with a large number of possible host addresses.
Class A range: 1.0.0.0 – 126.255.255.255
Default subnet mask: 255.0.0.0
Default prefix: /8
How Does Class A Work?
In the traditional classful addressing system, the first octet identifies the network, while the remaining three octets identify hosts within that network.
This allows a large number of host addresses per network.
Example:
IP Address:
10.1.2.3Default Subnet Mask:
255.0.0.0Network Portion:
10Host Portion:
1.2.3
Class A addresses were suitable for organizations requiring large address spaces. Today, the 10.0.0.0/8 block is reserved for private networks and is widely used inside organizations.
2. Class B IP Address
Class B addresses were designed for medium-sized networks.
Class B range: 128.0.0.0 – 191.255.255.255
Default subnet mask: 255.255.0.0
Default prefix: /16
How Does Class B Work?
In the traditional classful addressing system, the first two octets identify the network, while the last two octets identify hosts.
This provides more network addresses than Class A, but fewer host addresses per network.
Example:
IP Address:
172.16.5.10Default Subnet Mask:
255.255.0.0Network Portion:
172.16Host Portion:
5.10
Class B addresses were intended for medium-sized organizations and networks. The range 172.16.0.0 – 172.31.255.255 is reserved for private network use.
3. Class C IP Address
Class C addresses were designed for smaller networks with fewer host addresses per network.
Class C range: 192.0.0.0 – 223.255.255.255
Default subnet mask: 255.255.255.0
Default prefix: /24
How Does Class C Work?
In the traditional classful addressing system, the first three octets identify the network, while the last octet identifies hosts.
A typical Class C /24 network contains 256 total IPv4 addresses, with 254 traditionally usable for hosts.
Example:
IP Address:
192.168.1.20Default Subnet Mask:
255.255.255.0Network Portion:
192.168.1Host Portion:
20
The private range 192.168.0.0 – 192.168.255.255 is commonly used in home and small office networks.
Difference Between Class A, B, and C
The following table summarizes the traditional default settings for Classes A, B, and C.
| Feature | Class A | Class B | Class C |
|---|---|---|---|
| First octet range | 1–126 | 128–191 | 192–223 |
| Default subnet mask | 255.0.0.0 | 255.255.0.0 | 255.255.255.0 |
| Default prefix | /8 | /16 | /24 |
| Network portion | First octet | First two octets | First three octets |
| Host portion | Last three octets | Last two octets | Last octet |
| Traditional network size | Very large | Medium | Small |
Note: The ranges shown describe traditional classful IPv4 addressing. Certain addresses are reserved for special purposes and are not available for ordinary host assignment.
Private IP Address Ranges
Private IPv4 addresses are used inside local networks and are not directly routable across the public internet.
The three main private ranges are:
Class A private range:
10.0.0.0/8Class B private range:
172.16.0.0/12Class C private range:
192.168.0.0/16
These ranges are often used for office networks, home routers, internal servers, and other private infrastructure.
Are IP Classes Still Used Today?
Traditional IP classes are important for learning networking fundamentals, but modern networks generally use Classless Inter-Domain Routing (CIDR).
CIDR uses prefix lengths such as /20, /24, and /27 to allocate IP addresses more flexibly instead of relying on fixed Class A, B, or C boundaries.
For example, 192.168.1.0/24 represents a network with 256 total IPv4 addresses. Subnetting can divide address space into smaller networks according to actual requirements.
Understanding IP classes remains useful for networking students, IT beginners, and anyone studying subnetting.
Conclusion
IP address Classes A, B, and C represent the traditional method of organizing IPv4 networks by size. Class A supported very large networks, Class B supported medium-sized networks, and Class C supported smaller networks.
Although modern networking primarily uses CIDR, learning these classes provides a strong foundation for understanding IP addressing, subnet masks, private IP ranges, and subnetting.

0 تعليقات