Subnet calculator (IPv4 and IPv6)

Turns an address in CIDR notation, such as 192.168.10.0/24 or 2001:db8::/48, into its network address, first and last usable host, broadcast, netmask, wildcard mask and number of addresses. It runs in your browser.

Try

Last reviewed . In your browser. Nothing is sent anywhere.

The same check in a terminal

ipcalc:

ipcalc 192.168.10.17/26

Python:

python3 -c "import ipaddress as i; n=i.ip_network('192.168.10.17/26', strict=False); print(n, n.netmask, n.num_addresses)"

Reading the result

/31 and /32

A /31 has two usable addresses for point-to-point links (RFC 3021), a /32 is a single host.

IPv6

IPv6 has no broadcast. A /64 is the usual size of one network.

Questions

How many hosts are in a /24?

256 addresses, 254 usable hosts: the first is the network and the last the broadcast.

What is a wildcard mask?

The netmask inverted, used by Cisco ACLs and OSPF: 0.0.0.255 for a /24.

What does /48 mean in IPv6?

The first 48 bits are the network. A /48 holds 65,536 networks of size /64.

Related guides

More tools

All tools · Acceptable use