What IP Address Classes Are and Why They Matter
An IP address class defines how an address is structured to identify a network and a host within it. Classful addressing, introduced in the early design of the Internet, divides public addresses into classes mainly by the leading bits of the first octet. These classes determine how many bits are used for the network portion and how many for hosts, which affects scaling and routing. While classful addressing is largely historical, understanding these classes remains useful for interpreting legacy documentation, troubleshooting ranges, and grasping foundational networking concepts.
Class A: Large-Scale Networks
Network Structure and Private Range
Class A addresses use the first octet to identify the network and the remaining three octets for hosts. The first bit of the first octet is 0, which means the first octet ranges from 1 to 126 in practice (0 and 127 are reserved). Class A supports a huge number of networks with up to 16 million hosts per network. The private range for Class A is 10.0.0.0 to 10.255.255.255, which is commonly used inside enterprises and homes via RFC 1918. Multicast, designated by the first four bits 1110, lies in the 224.0.0.0 to 239.255.255.255 range and is outside classful unicast assignments.
- First octet: 1–126
- Default prefix: /8
- Private block: 10.0.0.0/8
- Typical use: Large organizations, ISP infrastructure
Class B: Mid-Size Networks
Network Structure and Private Range
Class B addresses use the first two octets for the network ID and the last two for hosts. The first two bits are 10, so the first octet ranges from 128 to 191. This design supports up to 16,000 networks with about 65,000 hosts each. The private range for Class B is 172.16.0.0 to 172.31.255.255, another RFC 1918 block frequently deployed in medium-sized networks. Reserved addresses within the 127.0.0.0/8 block, such as 127.0.0.1 for loopback, are not Class B unicast addresses.
- First octet: 128–191
- Default prefix: /16
- Private block: 172.16.0.0/12
- Typical use: Mid-size enterprises, campus networks
Class C: Small Networks and End Systems
Network Structure and Private Range
Class C addresses allocate the first three octets to the network and the last octet to hosts. The first three bits are 110, making the first octet fall between 192 and 223. These networks support up to 254 hosts per network, which fits small organizations or simple home setups. The private range for Class C is 192.168.0.0 to 192.168.255.255, widely used in residential and small business routers. Broadcast addresses in each class correspond to all host bits set to 1 within that classful host portion, affecting legacy behavior in local networks.
- First octet: 192–223
- Default prefix: /24
- Private block: 192.168.0.0/16
- Typical use: Small offices, home networks
Special and Reserved Addresses
Certain addresses have dedicated roles beyond ordinary unicast classes. The loopback range 127.0.0.0/8, most commonly 127.0.0.1, is used to refer to the local device. This range is not assigned as a classful public network. Multicast uses the range 224.0.0.0 to 239.255.255.255, which does not fit into the A–C unicast classes but relies on the high-order bits of the first octet. The classful designation of network 0.0.0.0 is reserved and typically represents a default route or unknown source, while 255.255.255.255 is the limited broadcast address intended for the current network.
- 0.0.0.0: Default route or invalid source
- 127.0.0.0/8: Loopback
- 224.0.0.0–239.255.255.255: Multicast
- 255.255.255.255: Limited broadcast
Private Address Space Across Classes
The private ranges defined by RFC 1918 are not routable on the public Internet and are reused inside organizational boundaries. These ranges span all three traditional classful boundaries and are treated as a single private space within each class. Network Address Translation (NAT) allows many private hosts to share a smaller set of public addresses, easing IPv4 scarcity. Overlapping private networks must be renumbered when merged to avoid routing conflicts, since these blocks are not globally unique.
| Class | First Octet | Private Range | Prefix Length |
|---|---|---|---|
| A | 1–126 | 10.0.0.0–10.255.255.255 | /8 |
| B | 128–191 | 172.16.0.0–172.31.255.255 | /12 |
| C | 192–223 | 192.168.0.0–192.168.255.255 | /24 |
From Classful to Classless Networking
Classful addressing was replaced by classless inter-domain routing (CIDR), which uses variable-length subnet masks instead of fixed classes. CIDR allows more efficient allocation by assigning any prefix length, supporting route aggregation, and reducing table sizes. For example, a traditional Class C network uses /24, but modern design can subnet further or summarize multiple upstream prefixes. The interpretations of first-octet ranges persist in documentation, making it helpful to recognize legacy terms while planning current networks with CIDR.
Practical Considerations Today
In modern networks, IP classes are mainly relevant when reading older documentation, configuring ACLs that reference historical ranges, or understanding default mask behavior. Designers typically plan with private RFC 1918 blocks, NAT, and public unicast prefixes defined by IANA and RIRs rather than strict A–C assignments. Subnetting, route summarization, and IPv6 adoption further reduce the day-to-day relevance of classful thinking, yet the concepts remain foundational for interpreting behavior, troubleshooting misconfigurations, and aligning with established documentation.
Summary: Key Ranges at a Glance
| Class | First Octet Range | Default Prefix | Private Range |
|---|---|---|---|
| A | 1–126 | /8 | 10.0.0.0/8 |
| B | 128–191 | /16 | 172.16.0.0/12 |
| C | 192–223 | /24 | 192.168.0.0/16 |