Fieldeng
Networking & Communications

IPv4 Subnet

Network, broadcast, mask, and usable host range from an IPv4 address and prefix or mask.

Networking & Communications

Network, broadcast, mask, and usable host range from an IPv4 address and prefix or mask.

App id: NET-01. Reference version 1.0.

How to fill it

Fill the inputs. The tool shows the outputs.

On the tool screen, Calc is the working sheet. Presets stores values you reuse. Reference is the formula, assumptions, and provenance below.

Formula

network = address AND mask;  hosts = 2^(32−prefix) − 2  (/31 and /32 special-cased)

Inputs

NameUnit
IPv4 addressipv4
Prefix length (optional)1
Subnet mask (optional)ipv4

Outputs

NameUnit
Network address (hero result)ipv4
Broadcast addressipv4
Subnet maskipv4
Prefix length1
Usable hosts1
First usable addressipv4
Last usable addressipv4

Diagnose

This tool does not attach diagnose observations.

Assumptions

  • Provide a prefix length or a dotted-decimal mask. If both are given they must agree.
  • /31 and /32 do not subtract network and broadcast from the host count.

Provenance

  • IPv4 subnetting. /31 is treated as a point-to-point pair (RFC 3021). /32 is a single host.

On this page