Network Parameters Input
IP Address
Subnet settings
Subnet mask
Number of hosts available
Number of subnets
Broadcast address
Network address
Subnet mask visualization
How subnet calculations work
An IPv4 subnet mask is a 32-bit binary value that separates the network and host portions of an IP address. Consecutive 1s represent network bits, followed by 0s for host bits.
Core formula:
1. Number of hosts available = 2(Number of host spaces) - 2
2. Number of subnets = 2(Number of subnet bits)
3. Network address = IP address AND subnet mask
4. Broadcast address = Network address OR (NOT subnet mask)
Example of calculation:
Assuming that we have a C-type network: 192.168.1.0 with a subnet mask of 255.255.255.0 (24):
- Number of host places = 32 - 24 = 8
- Usable hosts = 28 - 2 = 254
- Number of subnets = 2(24-24) = 1 (undistributed subnet)
- Network address = 192.168.1.0
- Broadcast address = 192.168.1.255
Why subtract 2?
A conventional subnet reserves 2 addresses: the network address (all host bits 0) and broadcast address (all host bits 1). These addresses are not assigned to host devices.
CIDR expression
CIDR (inter-area route without category) means that it is a simpler sub-net mask expression, in the form of IP addresses followed by "/" and network position lengths. For example: 192.168.1.0/24.