Week 6 · Lesson 3

IPv4 Addressing (2): Classful in Depth

Now that you can read an address, this lesson supplies the exact numbers: how many networks and hosts each class allows, why two addresses per network are always lost, and why the whole classful system had to be replaced.

CCNA 200-301 Domain 1.6 IPv4 Addressing Verified 2026-10-11
Part 1

The canonical classful facts

These numbers come straight from the classful structure defined in RFC 791. They are not estimates; they are fixed facts, and the exam expects the exact figures. Learn this table as a unit.

ClassPrefix / maskNetworksHosts per networkHost bits
A/8 · 255.0.0.012616,777,21424
B/16 · 255.255.0.016,38465,53416
C/24 · 255.255.255.02,097,1522548
Exam tip. Three numbers to burn in: Class A ≈ 16,777,214 hosts over 126 networks; Class B = 65,534 hosts over 16,384 networks; Class C = 254 hosts over 2,097,152 networks. Notice the trade-off: the smaller the network, the more of them exist.

How the network counts are derived

The first few bits of the address are fixed by the class, so the number of network bits is what remains of the default prefix after those fixed bits:

Why Class A loses two networks. Class A has 27 = 128 possible values in its first octet, but the all-zero network (0.0.0.0/8) is reserved and 127.0.0.0/8 is loopback. 128 − 2 = 126. This is also why the first-octet Class A range is 1–126.
The three classes · pick one

Part 2

The loopback block

The entire network 127.0.0.0/8 is reserved for loopback. A packet sent to any address in this block never leaves the host — it is handed back up the local stack. The most common member is 127.0.0.1, the standard loopback address. Pinging ping 127.0.0.1 (the name localhost usually resolves to it) tests whether the host’s own TCP/IP stack is working, with no dependence on a cable, switch, or router.

Practical use. If ping 127.0.0.1 fails, the problem is inside the host (its IP stack or NIC driver), not the network. If it succeeds but you cannot reach another host, the local stack is fine and the fault lies out on the network.
Exam tip. The whole 127.0.0.0/8 block is loopback, not just 127.0.0.1. A question may show 127.1.1.1 or 127.200.5.9 — these are loopback too. Loopback is not routable.
Part 3

Host counts: the 2h − 2 rule

In a classful network, the number of addresses available for hosts depends on how many host bits remain. A Class A network has 24 host bits, Class B has 16, and Class C has 8. In theory that gives 2h addresses — but two of them cannot be assigned to a host:

Formula — usable hosts. Usable host addresses = 2h − 2, where h is the number of host bits (32 minus the prefix length).
ClassHost bits (h)2hUsable = 2h − 2
A2416,777,21616,777,214
B1665,53665,534
C8256254
Usable hosts per classful network Class A — 16,777,214 hosts A Class B — 65,534 hosts B Class C — 254 hosts C Bars are scaled to show the enormous imbalance; the labels give the exact counts.
Usable hosts · move the prefix slider
Prefix /24
network address

Part 4

Network and broadcast addresses

Within any network, two of the addresses are reserved:

Every other address in the range (from .1 to .254 in a /24) is a usable host address. This is exactly the 254 figure for a Class C network.

Explore a network · type an address and a prefix

Part 5

Unicast, broadcast, multicast

IPv4 supports three ways of addressing a packet to its receivers:

TypeSent toRange / example
UnicastExactly one hostClasses A, B, C (e.g. 192.168.1.10)
BroadcastAll hosts in the local networkThe network’s all-ones address (e.g. 192.168.1.255)
MulticastA selected group that joined the groupClass D, 224.0.0.0 – 239.255.255.255

Unicast is one-to-one: a web request from your PC to a server. Broadcast is one-to-all-here: an ARP request asking “who has this IP?” uses the broadcast address, and every host in the subnet receives it. Multicast is one-to-many-select: only devices that have joined the group process the packet — used for streaming video, routing-protocol updates, and service discovery.

Broadcast is per-network. A broadcast does not cross a router. Routers separate broadcast domains, so 192.168.1.255 is only seen inside 192.168.1.0/24. Multicast, by contrast, can be forwarded between networks when routers are multicast-enabled.
Which kind of delivery? · pick one

Part 6

Why classful is wasteful

Classful addressing forces every organisation into one of exactly three sizes, and both ends of the scale waste addresses badly:

The fix came in two stages. First, subnetting lets you borrow bits from the host portion to divide one classful network into smaller, right-sized subnetworks. Later, CIDR (Classless Inter-Domain Routing) removed the classes entirely, allowing any prefix length — /25, /26, /30, and so on. Together they are why we can size networks precisely instead of choosing between 254 and 65,534 addresses. Subnetting is the subject of Week 7; this lesson is the classful baseline you need before you start borrowing bits.

Exam tip. The phrase that links this lesson to the next is “classful is wasteful because the network sizes are fixed and far too large or too small”. The remedy — borrowing host bits to create subnets — is the first skill of Week 7.

Key terms

TermMeaning
Classful addressingThe original IPv4 scheme with fixed Classes A, B, C (and D, E) and default masks.
Network addressThe address with all host bits 0; it names the network and is not assigned.
Broadcast addressThe address with all host bits 1; a packet to it reaches every host in the network.
LoopbackThe 127.0.0.0/8 block, used to test a host’s own IP stack (127.0.0.1).
UnicastTraffic addressed to a single host.
BroadcastTraffic addressed to all hosts in the local network; not forwarded by routers.
MulticastTraffic addressed to a group (Class D) that hosts join to receive.
CIDRClassless Inter-Domain Routing; allows any prefix length and removed the classes.
Part 7 · Your turn

Review

Check what you have learned with these review questions.

Review · 6 questions

Sources

Sources & references

  1. Postel, J. RFC 791: Internet Protocol (1981), Section 3.2 (address classes and reserved network numbers). rfc-editor.org/rfc/rfc791.
  2. Braden, R. RFC 1122: Requirements for Internet Hosts — Communication Layers (1989), Section 3.2.1.3 (address formats and classes). rfc-editor.org/rfc/rfc1122.
  3. Rekhter, Y. et al. RFC 1918: Address Allocation for Private Internets (1996). rfc-editor.org/rfc/rfc1918.
  4. Cisco. CCNA (200-301) Exam Topics, IP Connectivity / IPv4 addressing. cisco.com.

Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.