IP Address Classes
Complete reference for IP classification and networking fundamentals
Complete IP Address Classes Chart
| Class | Range | Subnet Mask | Networks | Hosts/Network | Private Range |
|---|---|---|---|---|---|
| A | 1.0.0.0 to 126.255.255.255 | 255.0.0.0 | 126 | 16,777,214 | 10.0.0.0 to 10.255.255.255 |
| B | 128.0.0.0 to 191.255.255.255 | 255.255.0.0 | 16,384 | 65,534 | 172.16.0.0 to 172.31.255.255 |
| C | 192.0.0.0 to 223.255.255.255 | 255.255.255.0 | 2,097,152 | 254 | 192.168.0.0 to 192.168.255.255 |
| D | 224.0.0.0 to 239.255.255.255 | N/A | N/A | N/A | None |
| E | 240.0.0.0 to 255.255.255.255 | N/A | N/A | N/A | None |
Understanding IP Address Classes
IP address classes are a fundamental concept in computer networking that divides the IPv4 address space into five distinct categories: Class A, B, C, D, and E. Each class serves different purposes and supports varying numbers of networks and hosts.
This classification system was introduced in 1981 as part of the original Internet Protocol specification (RFC 791). The system was designed to efficiently allocate IP addresses based on organization size: large corporations and ISPs would receive Class A addresses with millions of host addresses, while small businesses would use Class C addresses with 254 hosts.
Although modern networks primarily use CIDR (Classless Inter-Domain Routing) for more flexible address allocation, understanding IP address classes remains essential for network administrators, IT professionals, and anyone studying networking fundamentals. The classification helps in quickly identifying network size, subnet masks, and address ranges.
Why IP Address Classes Matter
Understanding IP address classes is crucial for several practical reasons:
Network Planning and Design
When designing a network infrastructure, knowing IP classes helps determine the appropriate address range for your organization's size and growth projections. A startup might begin with Class C addresses, while an enterprise needs Class A or B ranges.
Troubleshooting Network Issues
Quickly identifying an IP address class helps diagnose connectivity problems, routing issues, and subnet mask misconfigurations. Network administrators can immediately recognize if an address is private, public, or reserved for special purposes.
Security and Access Control
Understanding which addresses are private versus public is essential for firewall configuration, NAT (Network Address Translation) setup, and implementing proper security policies. Private IP ranges should never be routed on the public internet.
Certification and Education
IP address classes are a fundamental topic in networking certifications like CompTIA Network+, Cisco CCNA, and other IT credentials. Mastering this concept is essential for passing these exams and advancing your career.
How to Determine IP Address Class
Identifying an IP address class is straightforward - simply examine the first octet (the first number before the first dot) of the IP address. The value of this first octet determines which class the address belongs to.
For example, in the IP address 192.168.1.1, the first octet is 192, which falls in the range 192-223, making it a Class C address. Similarly, 10.0.0.1 has a first octet of 10, placing it in Class A (1-126 range).
Detailed Breakdown of Each IP Class
Class A Networks
Class A addresses are designed for very large networks. The first octet (8 bits) identifies the network, while the remaining three octets (24 bits) identify individual hosts within that network. This allows for 126 possible networks, each supporting over 16 million hosts.
Class B Networks
Class B addresses serve medium to large-sized networks. The first two octets (16 bits) identify the network, and the last two octets (16 bits) identify hosts. This provides a balance between the number of networks (16,384) and hosts per network (65,534).
Class C Networks
Class C addresses are intended for small networks. The first three octets (24 bits) identify the network, leaving only the last octet (8 bits) for host addresses. This allows for over 2 million networks, each supporting up to 254 hosts.
Class D (Multicast) and Class E (Experimental)
Class D addresses (224.0.0.0 to 239.255.255.255) are reserved for multicast groups, enabling efficient one-to-many communication for applications like video streaming, online gaming, and stock market feeds. Class E addresses (240.0.0.0 to 255.255.255.255) are reserved for experimental purposes and future use.
Note: These classes don't use traditional subnet masks or host addressing since they serve special purposes rather than standard network communication.
Private vs Public IP Address Ranges
Each IP address class contains both private and public address ranges, serving different networking purposes.
Private IP Ranges
Used for internal networks, not routed on the internet
Public IP Ranges
- • All other addresses within each class
- • Routable on the public internet
- • Assigned by Internet Service Providers
- • Globally unique and accessible
- • Used for servers, websites, and external communication
Private addresses allow multiple devices to use the same IP ranges internally, conserving public IP addresses and providing network security.
Default Subnet Masks and CIDR Notation
Each IP address class has a default subnet mask that determines which portion of the IP address represents the network and which represents the host.
| Class | Subnet Mask | CIDR | Network Bits | Host Bits |
|---|---|---|---|---|
| A | 255.0.0.0 | /8 | 8 | 24 |
| B | 255.255.0.0 | /16 | 16 | 16 |
| C | 255.255.255.0 | /24 | 24 | 8 |
Understanding CIDR Notation
CIDR (Classless Inter-Domain Routing) notation uses a slash followed by a number (e.g., /24) to indicate how many bits are used for the network portion. /24 means the first 24 bits are for the network, leaving 8 bits for hosts (256 addresses).
Frequently Asked Questions
How do I determine what class my IP address is?
Look at the first number (octet) of your IP address. Class A: 1-126, Class B: 128-191, Class C: 192-223, Class D: 224-239, Class E: 240-255. Our tool automatically detects this for you by analyzing your current IP address and displaying its class, subnet mask, and network properties.
What's the difference between private and public IP addresses?
Private IP addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are used within local networks and aren't routed on the internet. They allow multiple organizations to use the same address ranges internally. Public IP addresses are globally unique, assigned by ISPs, and accessible from anywhere on the internet. NAT (Network Address Translation) enables devices with private IPs to communicate with the internet through a public IP.
Why were IP address classes created?
IP address classes were created in 1981 to efficiently allocate IP addresses for different network sizes. The system provided a simple way to divide the IPv4 address space: large organizations got Class A (millions of hosts), medium organizations got Class B (thousands of hosts), and small networks got Class C (254 hosts). This hierarchical structure made routing more efficient in the early internet.
Are IP address classes still used today?
While the original classful addressing system is largely replaced by CIDR (Classless Inter-Domain Routing) since 1993, the classification remains relevant for understanding network fundamentals, troubleshooting, and education. Many networking certifications still test knowledge of IP classes, and the concept helps quickly identify network size and default subnet masks.
What is a subnet mask and why is it important?
A subnet mask is a 32-bit number that determines which portion of an IP address represents the network and which represents individual hosts. It's crucial for routing decisions, determining if two IP addresses are on the same network, and enabling network segmentation. For example, 255.255.255.0 means the first three octets identify the network, and the last octet identifies hosts.
How many devices can connect to each IP class?
Class A supports 16,777,214 hosts per network (2^24 - 2), Class B supports 65,534 hosts per network (2^16 - 2), and Class C supports 254 hosts per network (2^8 - 2). We subtract 2 because the first address is reserved for the network address and the last for the broadcast address. These numbers represent the theoretical maximum; practical limits may be lower.
What are Class D and Class E addresses used for?
Class D (224.0.0.0 to 239.255.255.255) addresses are reserved for multicast communication, allowing data to be sent to multiple recipients simultaneously. This is used for video conferencing, IPTV, stock market feeds, and online gaming. Class E (240.0.0.0 to 255.255.255.255) addresses are experimental and reserved for future use, though some are used for research purposes.
Can I change my IP address class?
Your public IP address is assigned by your Internet Service Provider and you can't change its class directly. However, you can configure private IP addresses within your local network using any class you prefer. Most home routers default to Class C (192.168.x.x), but you can configure them to use Class A (10.x.x.x) or Class B (172.16-31.x.x) private ranges.
What is CIDR and how does it relate to IP classes?
CIDR (Classless Inter-Domain Routing) is a more flexible addressing method introduced in 1993 to replace the rigid class system. Instead of fixed network/host boundaries, CIDR uses variable-length subnet masks (VLSM) indicated by a slash notation (e.g., /24). This allows for more efficient IP address allocation and reduces routing table sizes. While CIDR is now standard, understanding IP classes helps grasp the fundamentals.
Why is 127.0.0.1 not part of Class A?
The 127.0.0.0/8 range (127.0.0.1 to 127.255.255.255) is reserved for loopback addresses, used for testing network software without sending packets over the network. While technically in the Class A range, it's a special-purpose address block that can't be assigned to networks. The address 127.0.0.1 is commonly known as 'microqit.com'.
What happens if I use a wrong subnet mask?
Using an incorrect subnet mask can cause connectivity issues. Devices may be unable to communicate with others on the same network, or they might try to route traffic incorrectly. For example, if your network uses 192.168.1.0/24 but a device is configured with 255.255.0.0 (/16), it will think it's on a much larger network and fail to route traffic properly.
How do I choose the right IP class for my network?
For private networks, choose based on your current and future needs. Home networks typically use Class C (192.168.x.x) with 254 hosts. Small to medium businesses might use Class B private range (172.16-31.x.x) for up to 65,534 hosts. Large enterprises or those planning significant growth should consider Class A (10.x.x.x) for maximum flexibility with over 16 million host addresses.
Real-World Use Cases
Home Network Setup
Most home routers use Class C private addresses (192.168.0.0/24 or 192.168.1.0/24) by default. This provides 254 usable addresses, sufficient for typical households with computers, smartphones, smart TVs, IoT devices, and gaming consoles. Understanding your network's IP class helps when troubleshooting connectivity issues or setting up port forwarding.
Corporate Network Design
Large enterprises often use Class A private addresses (10.0.0.0/8) to accommodate thousands of employees, multiple office locations, and extensive device networks. This provides over 16 million addresses, allowing for logical network segmentation by department, location, or function while maintaining a unified address scheme.
ISP Address Allocation
Internet Service Providers receive large blocks of public IP addresses (often Class A or B ranges) from regional internet registries. They then allocate smaller subnets to customers. Understanding IP classes helps ISPs efficiently manage their address space and plan for customer growth.
Network Security and Firewall Rules
Security professionals use IP class knowledge to create firewall rules that block or allow traffic based on address ranges. For example, blocking all Class E addresses (experimental) or ensuring private IP ranges aren't routed to the internet prevents common security misconfigurations.
Video Streaming and Multicast
Class D multicast addresses enable efficient video streaming to multiple recipients simultaneously. IPTV services, corporate video conferences, and online gaming use multicast to reduce bandwidth consumption compared to sending individual streams to each recipient.
Why Use Our IP Address Classes Tool?
Instant Classification
Automatically detects your IP address and determines its class, subnet mask, and network properties instantly.
Complete Reference
Comprehensive chart showing all IP classes, ranges, subnet masks, and capacity information in one place.
Privacy Focused
All analysis happens in your browser. We don't store or log your IP address or any personal information.