Tools · runs in your browser
Subnet Calculator
Type an address with its prefix or mask. The results update as you type.
Network
Route commands
Subnets
| Subnet | Hosts | Broadcast |
|---|
Reading the result
- Network is the first address of the block. It names the subnet, and you use it in route commands.
- Broadcast is the last address. A packet sent to it goes to every machine on the subnet.
- Usable hosts are the addresses in between. You can give these to machines.
- Prefix (the number after the slash) is how many bits are fixed. A bigger number means a smaller subnet:
/24has 254 usable hosts and/30has 2. - Gateway is the address a machine sends a packet to when the destination is on a different subnet.
The first route command reaches this subnet through the gateway. The second sends everything else to the gateway. The lines that start with # are the same commands for the older route tool.