Networks
Why IPv4 /31 and /32 prefixes need special treatment
Subtracting network and broadcast from every IPv4 block does not adequately describe these special cases.
Before you start
Text is processed in the browser. Consider the content before using it and read the privacy policy.
PrivacyHow to use it
Calculate 192.0.2.0/31 and check both addresses and the broadcast indication.
Calculate 192.0.2.1/32 and check the total.
Read the tool’s explanation before applying the result to a real configuration.
Worked example
For /31, addresses .0 and .1 may both be used on a point-to-point link under RFC 3021. /32 represents only 192.0.2.1, often a host route.
Result: /31 has 2 addresses; /32 has 1; the result has no distinct broadcast.
Limits and checks
Using /31 depends on the link type and equipment configuration. The calculation does not configure or check a network; the example addresses are reserved for documentation.
Next step
For a traditional subnet, see the /26 example.
How to interpret an IPv4 network in CIDR notation