networking

IP Address Classes Explained with Examples

An Internet Protocol (IP) address is a numeric label assigned to each device joined to a computer network that uses the Internet Protocol for communication. Classes organize add...

Mara Ellison
IP Address Classes Explained with Examples

What Is an IP Address and Why Classes Matter

An Internet Protocol (IP) address is a numeric label assigned to each device joined to a computer network that uses the Internet Protocol for communication. Classes organize addresses by prefix length and intended scale, helping routers decide where to forward packets and how much of the address identifies hosts. Although classful addressing is largely replaced by Classless Inter-Domain Routing (CIDR), understanding IP address classes remains useful for interpreting ranges, diagnostics, and legacy documentation. This guide explains each class with concrete examples, default masks, and how they relate to today’s private and public addressing practices.

Class A Networks: Large-Scale Allocation

Class A networks reserve the first octet for the network identifier and the remaining three octets for hosts, supporting up to about 16.7 million devices per network. The first bit pattern is 0, with valid network numbers from 1 to 126; 127 is reserved for loopback. Class A is intended for very large organizations with many hosts. The default subnet mask is 255.0.0.0, or /8. An example is 10.0.0.1, where 10.0.0.0/8 is allocated for private use and can be subdivided into smaller blocks for internal routing.

Class A Characteristics and Examples

  • Leading bits: 0
  • First decimal range: 1–126
  • Default mask: 255.0.0.0 (/8)
  • Private example: 10.20.30.40
  • Public example (historical): 36.215.62.41 (allocated to a U.S. agency)

Class A Practical Context

In practice, organizations that need many addresses typically receive one or more /16 blocks (equivalent to a classful B private range) from an RIR and use internal routing. The 10.0.0.0/8 private block is the most common Class A private space, letting enterprises deploy tens of thousands of subnets without using public address space.

Class B Networks: Balanced Allocation

Class B networks use the first two octets for the network and the last two for hosts, allowing up to about 65,000 hosts per network. The first bit pattern is 10, with first decimal values from 128 to 191. Class B suits medium-to-large organizations. The default mask is 255.255.0.0, or /16. Examples include 172.16.0.1 and other addresses in the 172.16.0.0–172.31.255.255 private range.

Class B Characteristics and Examples

  • Leading bits: 10
  • First decimal range: 128–191
  • Default mask: 255.255.255.0 (/16)
  • Private example: 172.20.10.5
  • Public example (historical): 128.25.72.151 (early university allocations)

Class B Practical Context

Because many organizations need more addresses than a small block provides but fewer than a classful Class A, Class B-style /16 prefixes are common in legacy documentation. Today, ISPs usually assign CIDR blocks like /20–/24, which are more flexible than strict class boundaries while still echoing the class B size range.

Class C Networks: Small Subnets and Hosts

Class C networks use the first three octets for the network and the last octet for hosts, supporting up to 254 usable addresses. The first bit pattern is 110, with first decimal values from 192 to 223. Class C is ideal for small networks such as home or office LANs. The default mask is 255.255.255.0, or /24. Common examples include 192.168.1.1 and other addresses in the 192.168.0.0–192.168.255.255 private block, as well as 198.51.100.0/24 and 203.0.113.0/24 used for documentation.

Class C Characteristics and Examples

  • Leading bits: 110
  • First decimal range: 192–223
  • Default mask: 255.255.255.0 (/24)
  • Private example: 192.168.1.100
  • Documentation example: 198.51.100.23
  • Public example (historical): 203.0.113.57 (TEST-NET-3)

Class C Practical Context

Class C aligns closely with common home and small business networks today. Most consumer routers default to a /24 subnet, making Class C intuitive for troubleshooting and configuration. Even when using private RFC 1918 ranges, the 192.168.0.0/16 block provides 256 Class C-sized subnets to scale across sites.

Class D and Class E: Special-Purpose and Reserved

Class D (first bits 1110, first decimal 224–239) is used for multicast, where one sender delivers to many receivers; it has no typical ‘host’ concept and is not suitable for ordinary host addresses. Class E (first bits 1111, first decimal 240–255) is reserved for future experimentation and research. Neither is used for conventional public or private host addressing.

Class D and E at a Glance

ClassFirst Octet RangeLeading Bits用途Default Mask
D224–2391110MulticastNot defined for hosts
E240–2551111Reserved (future/experimental)Not defined for hosts

Classful vs Classless Context Today

Modern networks rely on CIDR and RFC 1918 private ranges rather than strict classful assignments, but IP address classes remain a helpful mental model. For example, thinking in classful terms can make it easier to understand why 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are the private blocks, and why documentation addresses like 192.0.2.0/24 are reserved. Subnetting, route aggregation, and troubleshooting all benefit from recognizing how address prefixes map to these traditional classes.

Practical Takeaways and Common Examples

  • Class A: 10.0.0.0/8 — large private networks; loopback 127.0.0.1
  • Class B: 172.16.0.0/12 — medium private networks; historic classful B blocks
  • Class C: 192.168.0.0/16 — small networks; common /24 home LANs
  • Multicast: 224.0.0.0/4 — used for protocols like PIM and routing protocols
  • Reserved: 240.0.0.0/4 — future use; avoid for conventional addressing

Common Misconceptions and Clarifications

Because private ranges overlap multiple classful boundaries, it’s easy to misclassify specific addresses. For instance, 172.16.0.0–172.31.255.255 spans part of the class B range but is private; 192.168.0.0–192.168.255.255 maps to multiple class C-like blocks within the class C range. Remember that classes are a historical organizing scheme; today we use prefix lengths and RFC 1918 to define reuse and routing behavior.

Summary and How to Use This Knowledge

Reviewing IP address classes helps decode documentation, visualize subnet sizes, and understand why certain address ranges are reserved or recommended. Use this framework when planning network layouts, interpreting older resources, or explaining addressing conventions to non-technical stakeholders. For day-to-day operations, pair this understanding with modern CIDR and private addressing practices to design robust, scalable networks.

Related Reading

More pages in this topic cluster.

AT&T Smart Hub: what it is, how it works, and how it fits your connectivity

The AT&T Smart Hub is a centralized networking solution designed to manage and extend connectivity across homes and small offices. As a long‑term profile in the evolution of f...

Read next
How to Check If a Port Is Open

To check if a port is open, use built-in command-line tools such as telnet , Test-NetConnection (PowerShell), nc (netcat), nmap , or curl . On most systems, you can run a local...

Read next
How to Find the DNS Server Closest to You for Faster, More Reliable Resolution

"Closest DNS to me" refers to a Domain Name System resolver that minimizes network distance and latency between your device or network and the DNS server, typically measured in...

Read next