Understanding IP Class Subnetting: Class C vs. Class B

Abstract: Explains Class B and Class C IP subnetting differences to help manage address allocation and prevent waste in network architecture.

Created: 2026-08-28 by
IP class subnetting determines how network addresses are divided, with Class B supporting approximately 65,000 hosts per network and Class C limited to 254. Understanding these limits is essential for efficient IP address management, preventing waste, and ensuring scalable network architecture for modern infrastructure requirements.

Historical Context of IP Classes

The original Internet Protocol (IPv4) specification defined five distinct classes of IP addresses: A, B, C, D, and E. These classes were designed to accommodate networks of varying sizes by fixing the boundary between the network portion and the host portion of the 32-bit address. While Classless Inter-Domain Routing (CIDR) has largely replaced this rigid structure in modern routing, understanding Class B and Class C remains fundamental for legacy system compatibility, troubleshooting, and grasping the evolution of subnet masks.

Class A addresses use the first octet for the network ID, leaving three octets for hosts. Class B splits the address evenly, using two octets for the network and two for hosts. Class C reserves three octets for the network, leaving only one octet for host identification. This historical division created a hierarchy that allowed early internet routing to be efficient but ultimately led to significant address exhaustion due to inefficient allocation practices.

Characteristics of Class B Networks

A Class B network is identified by the first two bits of the first octet being 10. This results in a default subnet mask of 255.255.0.0 or /16 in CIDR notation. The range of valid Class B addresses spans from 128.0.0.0 to 191.255.255.0. Because it utilizes 16 bits for the network portion and 16 bits for the host portion, a single Class B network can support up to 65,534 usable host addresses (subtracting the network and broadcast addresses).

This capacity made Class B ideal for large organizations, universities, and early ISPs. However, allocating entire Class B blocks to mid-sized companies often resulted in massive waste. For example, a company needing 1,000 addresses might receive a block capable of holding 65,000, leaving over 64,000 addresses unused within that specific assignment. This inefficiency was a primary driver for the adoption of Variable Length Subnet Masking (VLSM) and CIDR.

Characteristics of Class C Networks

Class C addresses begin with the bits 110 in the first octet, resulting in a default subnet mask of 255.255.255.0 or /24. The valid range extends from 192.0.0.0 to 223.255.255.0. With 24 bits reserved for the network and only 8 bits for hosts, a Class C network supports a maximum of 254 usable host addresses. This limitation makes Class C suitable for small local area networks (LANs), such as home offices or small retail environments.

The scarcity of Class C addresses compared to Class B ones meant they were allocated more granularly. However, even Class C blocks could become fragmented across different providers, complicating routing tables. Modern networking relies on assigning smaller subnets within larger blocks rather than relying on fixed class boundaries, allowing for precise allocation based on actual need.

Calculating Host Capacity

To calculate the number of usable hosts in any subnet, you must consider the number of bits available for host identification. The formula is 2^n - 2, where n is the number of host bits. The subtraction of two accounts for the network address (all host bits zero) and the broadcast address (all host bits one), which cannot be assigned to individual devices.

  • Class B: With 16 host bits, the calculation is 2^16 - 2 = 65,534 usable hosts.
  • Class C: With 8 host bits, the calculation is 2^8 - 2 = 254 usable hosts.

Understanding this mathematical foundation helps network administrators plan for growth and avoid address exhaustion. It also highlights why subnetting a Class B network into multiple Class C-sized subnets can be an effective strategy for segmenting traffic and improving security.

Subnetting Strategies and Efficiency

When designing a network, choosing between Class B and Class C structures depends on the required scale. If you have a large organization with many departments, starting with a Class B address space allows you to subnet it into multiple smaller networks. Conversely, if you are managing several small sites, aggregating Class C addresses under a single provider simplifies routing.

For detailed guidance on optimizing your IP allocation, see Maximizing the Number of Subnets. This resource explores techniques to extract maximum utility from your assigned address space, ensuring minimal waste regardless of the initial class designation.

Modern Relevance and CIDR

While the concept of "Class B" or "Class C" is technically obsolete in routing protocols, the terminology persists in common parlance. Today, we use CIDR notation to define arbitrary subnet masks. For instance, a /24 prefix behaves like a traditional Class C network, while a /16 prefix mirrors Class B. This flexibility allows ISPs to allocate addresses in blocks that match customer needs precisely, reducing fragmentation and conserving the global IPv4 pool.

If you are setting up a small network with multiple routers, consider Subnetting within a Single IP Range vs Using Multiple IP Ranges for a Small Network with 1+3 Routers Setup for practical implementation steps tailored to complex topologies.

Frequently Asked Questions

Can I still use Class B addresses today?

Yes, but they are typically assigned as part of a larger CIDR block rather than as standalone classful networks. Most ISPs provide /24 or /28 blocks instead of full /16 Class B assignments due to IPv4 scarcity. Legacy systems may still reference these classes internally for configuration purposes.

What happens if I run out of IPs in a Class C subnet?

You will experience connectivity issues for new devices attempting to join the network. To resolve this, you must either restructure the network using VLSM to create smaller subnets from a larger parent block or request additional address space from your ISP. Implementing DHCP scope monitoring can help predict these shortages before they occur.

How does NAT relate to IP classes?

NAT (Network Address Translation) allows multiple private IP addresses, including those from Class C ranges, to share a single public IP address. This technology mitigates the impact of limited public IP allocations, enabling organizations to use non-routable private address spaces effectively behind a gateway router.

Is Class A still relevant for enterprise networks?

Class A addresses (/8 prefixes) are rarely allocated to end-users today due to their massive size. They are mostly retained by major tech companies or government entities. For most enterprises, a /16 or /24 allocation is sufficient and more manageable than handling a /8 block.

What is the main advantage of subnetting a Class B network?

Subnetting a Class B network allows you to divide a large broadcast domain into smaller, more manageable segments. This reduces network congestion, improves security by isolating traffic, and simplifies troubleshooting by limiting the scope of potential failures to specific subnets.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More