IP Subnet Calculator
This calculator provides detailed information about Internet Protocol version 4 (IPv4), including network and broadcast addresses, ranges of usable hosts, with the corresponding subnet mask.
A subnet is a portion of an Internet Protocol (IP) network, which encompasses a set of communication protocols utilized across the Internet and similar networking environments. This framework is often referred to as TCP/IP, short for Transmission Control Protocol/Internet Protocol, and it is fundamental to modern digital communication.
The process of dividing a network into two or more distinct segments is known as subnetting. This method is essential for optimizing network performance and enhancing security. Routers are the devices that facilitate the exchange of data between these subnetworks, acting as the physical boundaries that manage traffic flow. While IPv4 (Internet Protocol version 4) remains the most commonly used addressing architecture, the adoption of IPv6 (Internet Protocol version 6) has been on the rise since its introduction in 2006, primarily to address the limitations of IPv4.
An IP address is composed of two main components: a network number, often referred to as the routing prefix, and a rest field that identifies a specific host or network interface. The rest field serves as a unique identifier within a particular network segment. The routing prefix is frequently represented using Classless Inter-Domain Routing (CIDR) notation, which applies to both IPv4 and IPv6. CIDR provides a standardized method for creating unique identifiers for networks and individual devices, facilitating efficient IP address allocation.
For IPv4 networks, subnet masks are commonly used to describe the network structure. These masks are sometimes expressed in dot-decimal notation and can be observed in the "Subnet" field of various network tools. All devices (hosts) within a subnetwork share the same network prefix, distinguishing them from the unique host identifiers. Subnet masks in IPv4 play a critical role in differentiating between the network portion and the host portion of an IP address. In the case of IPv6, the network prefix performs a similar function, with the prefix length indicating the number of bits allocated for the network address.
Prior to the introduction of CIDR, IPv4 network prefixes were derived directly from the IP address based on its class (A, B, or C). CIDR addresses these limitations by allowing for flexible address assignments, which can range from /1 to /30 in IPv4, depending on the network's specific needs.
This subnet calculator provides a comprehensive solution for determining essential IP address information, enabling users to efficiently manage their networking requirements.
Size | Network Mask | Usable Hosts |
---|---|---|
Class A | ||
/8 | 255.0.0.0 | 16,777,214 |
/9 | 255.128.0.0 | 8,388,606 |
/10 | 255.192.0.0 | 4,194,302 |
/11 | 255.224.0.0 | 2,097,150 |
/12 | 255.240.0.0 | 1,048,574 |
/13 | 255.248.0.0 | 524,286 |
/14 | 255.252.0.0 | 262,142 |
/15 | 255.254.0.0 | 131,070 |
Class B | ||
/16 | 255.255.0.0 | 65,534 |
/17 | 255.255.128.0 | 32,766 |
/18 | 255.255.192.0 | 16,382 |
/19 | 255.255.224.0 | 8,190 |
/20 | 255.255.240.0 | 4,094 |
/21 | 255.255.248.0 | 2,046 |
/22 | 255.255.252.0 | 1,022 |
/23 | 255.255.254.0 | 510 |
Class C | ||
/24 | 255.255.255.0 | 254 |
/25 | 255.255.255.128 | 126 |
/26 | 255.255.255.192 | 62 |
/27 | 255.255.255.224 | 30 |
/28 | 255.255.255.240 | 14 |
/29 | 255.255.255.248 | 6 |
/30 | 255.255.255.252 | 2 |
/31 | 255.255.255.254 | 0 |
/32 | 255.255.255.255 | 0 |