跳到內文

STEMSTUDIO

Work out a subnet

Network · runs on this device

Work out a subnet

From an address and prefix: network, usable host range and count, and masks. IPv6 too.

  • Free, no account
  • Nothing is sent

Help

IPv4 or IPv6. Leave the prefix off to treat it as a single host.

Processing, communication and stored data

Enter something like 192.168.1.10/24 and get the network address, broadcast, usable host range and subnet mask. IPv6 prefixes work too.

支援格式

IPv4 / IPv6

Questions

Is what I type sent anywhere?

No. It is all computed in the browser, so internal addressing plans stay on your machine.

Why does /31 show two hosts?

That is correct. RFC 3021 allows both addresses of a /31 to be used on a point-to-point link between routers.

Why is the IPv6 host count so large?

A /64 holds about 18 quintillion addresses. That size is the normal unit in IPv6; the design does not try to conserve them.

The network address shown is not the address I typed.

That is correct. Given 192.168.1.10/24, the network that host belongs to is 192.168.1.0/24, so the result is normalised to it. The point of the calculation is the block the host sits in, not the host itself.

Which range should I use for an internal network?

One of the reserved private ranges: 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16. None of the three is routed on the internet, so nothing you assign collides with the outside world. At small scale, laying out 192.168.x.0/24 blocks is the easiest to live with; sites tend to move to 10.x.x.x once there are enough locations to want summarised routes.

Can it tell me whether two CIDRs overlap?

It expands one CIDR at a time. To check an overlap, run both and compare the first and last addresses: if either range starts inside the other, they overlap. Handing out two blocks that overlap without noticing is the most common failure in network design.

Ratings from users

Ratings appear once there are 10.

Report a problem or suggest something

The tool name, this page’s path and your browser type are sent with it. Files are never sent. For a reply, use the email on the Contact page.