This tool helps you understand and calculate IPv4 subnetting by dividing a network into smaller subnets.
VLSM allows you to create subnets of different sizes from a parent network.
Add the subnets you need, ordering from largest to smallest:
Subnetting is the process of dividing a large network into smaller, more manageable sub-networks or subnets. This helps to:
Fixed-length Subnet Mask (FLSM): All subnets have the same mask/size
Variable-length Subnet Mask (VLSM): Subnets can have different masks/sizes
VLSM is more efficient for networks with varying host requirements.
Remember: Each subnet needs a network address and broadcast address. They cannot be assigned to hosts.
| Calculation | Formula | Example (/24 → /26) |
|---|---|---|
| Number of Subnets | 2(new prefix - old prefix) | 2(26-24) = 22 = 4 subnets |
| Hosts Per Subnet | 2(32 - new prefix) - 2 | 2(32-26) - 2 = 26 - 2 = 62 hosts |
| Subnet Size | 2(32 - new prefix) | 2(32-26) = 26 = 64 addresses |
| Subnet Increment | 256 - (256 / 2(new prefix - old prefix)) | 256 - (256 / 22) = 256 - 64 = 192 |
| CIDR | Subnet Mask | Hosts | Common Use |
|---|---|---|---|
| /24 | 255.255.255.0 | 254 | Small network |
| /25 | 255.255.255.128 | 126 | Half a /24 |
| /26 | 255.255.255.192 | 62 | Quarter of a /24 |
| /27 | 255.255.255.224 | 30 | Small department |
| /28 | 255.255.255.240 | 14 | Small team |
| /29 | 255.255.255.248 | 6 | Few devices |
| /30 | 255.255.255.252 | 2 | Point-to-point link |
| /31 | 255.255.255.254 | 2* | P2P (RFC 3021) |
| /32 | 255.255.255.255 | 1 | Single host |
* /31 networks don't have network/broadcast addresses (RFC 3021)