Calculate IPv4 and IPv6 subnets including network addresses, usable host ranges, subnet masks, IP ranges, and CIDR notation.
IP subnetting is the process of dividing a network into smaller, more manageable sub-networks. This calculator supports both IPv4 and IPv6 protocols, helping network administrators plan and configure network infrastructure efficiently.
A subnet is a division of an IP network, where an IP network uses the Internet Protocol suite (commonly known as TCP/IP). Subnetting allows network administrators to:
IPv4: Uses 32-bit addresses (e.g., 192.168.1.1) with subnet masks in dotted decimal notation (e.g., 255.255.255.0) or CIDR notation (e.g., /24).
IPv6: Uses 128-bit addresses (e.g., 2001:db8:85a3::8a2e:370:7334) with prefix lengths (e.g., /64) to define network boundaries.
Classless Inter-Domain Routing (CIDR) notation uses a slash followed by a number to indicate how many bits are used for the network portion. For example:
| CIDR | Subnet Mask | Usable Hosts |
|---|---|---|
| Class A Networks | ||
| /8 | 255.0.0.0 | 16,777,214 |
| /12 | 255.240.0.0 | 1,048,574 |
| Class B Networks | ||
| /16 | 255.255.0.0 | 65,534 |
| /20 | 255.255.240.0 | 4,094 |
| Class C Networks | ||
| /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 |
Network Design: Subnetting helps create logical network segments for departments, VLANs, or geographic locations.
Security: Separate subnets can implement different security policies and access controls.
Performance: Smaller broadcast domains reduce network congestion and improve overall performance.