a /26 inside a private range
- IPv4 address
- 192.168.1.130
- Prefix length (/n)
- 26
Network address192.168.1.128
DRV-019: 2^6 - 2, verified by hand against the mask
Open this exampleIPv4 subnet arithmetic, network, broadcast, mask and usable range. Handles the /31 and /32 special cases, which most subnet calculators get wrong.
Also called: ip subnet mask calculator, network address calculator.
192.168.1.128/26. Usable range 192.168.1.129 to 192.168.1.190, broadcast 192.168.1.191. 62 usable addresses out of 64.
The network address is the IP bitwise-ANDed with the mask; the broadcast is the IP ORed with the inverted mask. The minus two removes those two addresses from the usable count. Except on a /31, where RFC 3021 defines a point-to-point link with no broadcast and both addresses usable, and on a /32, which is a single host route.
addresses = 2^(32-prefix); usable = addresses - 2Full derivation: Subnetting, and the two addresses you cannot use
Each of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.
Network address192.168.1.128
DRV-019: 2^6 - 2, verified by hand against the mask
Open this exampleNetwork address10.0.0.4
RFC 3021 point-to-point exception
Open this exampleNetwork addressNot a valid IPv4 address.
degenerate case: the engine declines rather than computing on garbage
Open this example