Skip to content

# Subnet Calculator

Type an IPv4 or IPv6 address and prefix, and read the network back. Two IPv4 breakouts page the usable hosts and slice the block into subnets.

This is generated in browser and is not sent to pah.moi servers.

About this tool1 paragraph

Pick IPv4 or IPv6, enter an address and prefix (CIDR, e.g. `192.168.1.0/24` or `2001:db8::/48`) and see the network and (for IPv4) broadcast addresses, netmask, the address range, and both the total and usable host counts. Two IPv4 breakouts sit below: Show hosts pages the usable addresses, and the Visor splits and joins the block into subnets.

Use it locally This tool has a native command line twin. Build `subnet-cli` from the site's source with:

    cargo build --release --bin subnet-cli

Source and licence terms