Unit 4 · Addressing Network Devices

4.3.1Classful addressing

ClassFirst octetDefault maskHosts per networkUse
A1-126255.0.0.0 (/8)about 16.7 millionVery large networks
B128-191255.255.0.0 (/16)65,534Medium networks
C192-223255.255.255.0 (/24)254Small networks
D224-239--Multicast
E240-255--Experimental

127.0.0.0/8 is loopback (127.0.0.1 refers to the local machine).

First octet of the addressABCDE1128192224240255127 = loopback/8 · 16.7 million hosts/16 · 65,534 hosts/24 · 254 hostsD multicast · E experimental
Historic IPv4 classes by first octet. Classful addressing is no longer used for routing, but the ranges are still useful to recognise

Classful addressing was replaced by CIDR in 1993. Today the prefix length (for example /24), not the class, decides the size of a network.

What "classful" meant

In the early Internet, the first few bits of an address fixed the mask. If the first octet was 1–126 the mask was always /8; if 128–191 it was /16; if 192–223 it was /24. That wasted huge numbers of addresses: a company that needed 300 hosts was often given a whole Class B (65,534 usable hosts).

Why you still learn the classes

Modern routing uses CIDR (see 4.4): the prefix length can be any value, not only /8, /16 or /24. But exams and day-to-day work still use class ranges to recognise address types at a glance:

Common mistake: assuming that 192.168.1.50 must use mask 255.255.255.0. Today the mask is whatever the network designer chose (/25, /26 and so on). Always look at the mask or prefix, not only the first octet.

Remember

  • Classful addressing is historic; CIDR decides size today.
  • Class ranges are still useful for recognising private, loopback and multicast addresses.
  • 127.0.0.1 always means "this computer".