VMware ESXi and vSphere Cluster Management
IPv4 Address Classes: Class A, B, C, D, E, and Classful Addressing
Learn how IPv4 address classes are identified by the first octet, their default masks, special ranges, and why modern networks use CIDR.
IPv4 address classes are a legacy way to categorize IPv4 addresses by their first octet. Classes A, B, and C historically described different default network sizes, while Class D is used for multicast and Class E is reserved or experimental. Modern networks use CIDR and subnet masks instead of relying on address classes, but classful terminology remains important for networking exams, legacy documentation, and understanding default masks.
IPv4 Address Fundamentals
An IPv4 address is a 32-bit network-layer address. It is normally written as four decimal octets separated by periods. An octet is an 8-bit section, so an IPv4 address has four groups of 8 bits:
32 bits = 8 bits . 8 bits . 8 bits . 8 bits
1st 2nd 3rd 4th octet
For example, 192.168.5.10 is written in dotted-decimal notation. Each octet can represent a value from 0 through 255.
The bits in an address are divided into a network portion and a host portion. The network portion identifies a network or subnet. The host portion identifies an interface within that network or subnet. A subnet mask or CIDR prefix length determines where this boundary occurs.
Address: 192.168.5.10
Mask: 255.255.255.0 (/24)
Network: 192.168.5
Host: 10
Two devices are in the same IP subnet only when their network prefixes match according to the configured subnet mask or prefix length. Merely having similar-looking addresses, or the same historical class, is not enough.
Why Classful Addressing Existed
Classful addressing was the original IPv4 allocation model for unicast address space. It divided addresses into fixed classes based on anticipated network sizes:
- Class A provided relatively few very large networks.
- Class B provided more medium-sized networks.
- Class C provided many small networks.
Each of Classes A, B, and C had a fixed default network boundary: /8, /16, or /24. The associated default classful mask was the mask historically assumed when no more-specific subnet mask was provided.
Classful addressing is now a legacy concept. It is still useful for recognizing first-octet ranges and default masks, but it does not determine modern subnet membership. CIDR, the configured subnet mask, or the configured prefix length is authoritative.
How to Identify an IPv4 Address Class
Look at the first octet of the address. The first-octet range identifies the traditional class:
Class A Addresses
Traditional Class A addresses have a first octet from 1 through 126. Their leading binary pattern is 0.
- Default classful mask:
255.0.0.0 - Default prefix length:
/8 - Historical network portion: first octet
- Historical host portion: final three octets
- Traditional purpose: very large networks
Under the historical default, an address such as 10.50.120.7 had:
Network portion: 10
Host portion: 50.120.7
Historical network: 10.0.0.0/8
The first octet 0 is excluded from ordinary Class A unicast allocation. The block beginning with zero had special historical meanings, including “this network” behavior. The first octet 127 is also excluded from ordinary Class A unicast allocation because 127.0.0.0/8 is reserved for loopback.
Class B Addresses
Traditional Class B addresses have a first octet from 128 through 191. Their leading binary pattern is 10.
- Default classful mask:
255.255.0.0 - Default prefix length:
/16 - Historical network portion: first two octets
- Historical host portion: final two octets
- Traditional purpose: medium-sized networks
For 172.16.55.13, the historical interpretation is:
Network portion: 172.16
Host portion: 55.13
Historical network: 172.16.0.0/16
Class C Addresses
Traditional Class C addresses have a first octet from 192 through 223. Their leading binary pattern is 110.
- Default classful mask:
255.255.255.0 - Default prefix length:
/24 - Historical network portion: first three octets
- Historical host portion: final octet
- Traditional purpose: small networks
For 192.168.5.10, the historical network portion is 192.168.5, and the historical host portion is 10. The associated classful network is 192.168.5.0/24.
Class D Addresses
Class D addresses have a first octet from 224 through 239, with leading binary pattern 1110. Class D is used for multicast, which is one-to-many traffic delivered to receivers that join a multicast group.
Class D does not have a default unicast network/host division or a default subnet mask in the same way as Classes A through C. For example, 224.0.0.5 is a multicast address, not an ordinary host address that should be interpreted with a Class A, B, or C default mask.
Class E Addresses
Class E addresses have a first octet from 240 through 255, with leading binary pattern 1111. This range is reserved or experimental rather than normal public unicast addressing.
The address 255.255.255.255 has the special meaning limited broadcast. It sends a broadcast to devices on the local network segment and is not routed across routers.
Special and Reserved IPv4 Ranges
Private IPv4 ranges are not an address class. They span traditional classes: 10.0.0.0/8 resembles Class A, 172.16.0.0/12 lies within the traditional Class B range, and 192.168.0.0/16 lies within the traditional Class C range. The distinction between private and public describes routing and intended use, not class.
Classful Network Comparison Examples
Class A comparison
Under the historical Class A default mask of /8, 10.50.120.7 belongs to 10.0.0.0/8. The address 10.47.8.4 shares the first octet, so it is in the same classful network. The address 11.5.4.3 has a different first octet and is in a different classful network.
Class B comparison
Under the historical Class B default mask of /16, 172.16.55.13 belongs to 172.16.0.0/16. The address 172.16.254.3 shares the first two octets and is in the same classful network. The address 172.55.54.74 has a different second octet and is in a different classful network.
Class C comparison
Under the historical Class C default mask of /24, 192.168.5.10 belongs to 192.168.5.0/24. The address 192.168.5.200 shares the first three octets and is in the same classful network. The address 192.168.6.10 is in a different classful network.
Classful Addressing Versus CIDR
CIDR, or Classless Inter-Domain Routing, replaced fixed Class A, B, and C allocation boundaries with variable-length prefixes. A prefix length such as /24 states how many of the 32 address bits identify the network prefix.
CIDR improves address allocation efficiency because an organization can receive a block sized for its actual needs rather than being forced to use an entire Class A, B, or C-sized allocation. CIDR also supports route aggregation, in which several contiguous networks can be represented by a shorter summary route.
For example, 10.50.120.7 is historically in the Class A range. If it is configured as 10.50.120.7/24, its current subnet is 10.50.120.0/24, not the entire 10.0.0.0/8 network. Another 10.x.x.x address is not automatically on the same subnet.
Classful terms still appear in certification exams, legacy documentation, default-mask discussions, and some older routing behavior. In a modern network, calculate the network address using the actual configured mask or prefix length. See IPv4 address classes and classless subnetting as a reference while studying these distinctions.
Optional Verification Commands
No device configuration is required to understand address classes. These commands can help inspect an assigned address, mask, prefix, or loopback operation:
ipconfig /all
ip addr show
ping 127.0.0.1
On Cisco IOS, use:
show ip interface brief
show running-config | section interface
These commands show configuration and connectivity information. They do not determine modern subnet membership from the address class alone.
Troubleshooting Common Misunderstandings
An address begins with 169.254
A 169.254.x.x address usually means the host did not obtain a usable address through DHCP and self-assigned a link-local address. Check physical or wireless connectivity, VLAN assignment, and DHCP server or relay reachability. Do not treat 169.254.0.0/16 as a normal routed enterprise subnet unless it was deliberately designed for a special purpose.
Two 10.x.x.x hosts are assumed to be on the same network
This mistake applies the obsolete Class A /8 default to a modern network. Compare the configured prefix lengths and calculate each network address using the actual mask. Two addresses can both begin with 10 while belonging to different subnets.
127.0.0.1 is used as an end-to-end network test
Loopback testing validates the local IP stack. It does not test the network interface, switch port, default gateway, DNS, or reachability of a remote host.
A multicast address is configured as a normal host address
Class D is for multicast group addressing. It does not provide ordinary host addressing with a Class A, B, or C default mask.
Key Points to Remember
- IPv4 addresses contain 32 bits written as four 8-bit octets.
- Class A uses first octets 1–126 and historically has a default
/8mask. - Class B uses first octets 128–191 and historically has a default
/16mask. - Class C uses first octets 192–223 and historically has a default
/24mask. - Class D, 224–239, is multicast and has no ordinary unicast classful mask.
- Class E, 240–255, is reserved or experimental;
255.255.255.255is limited broadcast. 0.0.0.0/8,127.0.0.0/8, and169.254.0.0/16have special purposes.- Private ranges are
10.0.0.0/8,172.16.0.0/12, and192.168.0.0/16; private addressing is not a class. - CIDR prefixes and subnet masks, not address classes, determine modern subnet membership.