netutilus

Subnets and CIDR

A /24 at the end of an address says how big the network is. This explains subnets, CIDR prefixes and netmasks, with the Subnet Calculator in Netutilus for Mac for the arithmetic.

Download on the Mac App Store ↗

free to download · macOS 14.6 or later

A subnet is a block of addresses that belong together: your home network, a company’s office, a provider’s range. Devices in the same subnet talk to each other directly. Anything outside it goes through the router.

Reading a prefix

An IPv4 address is 32 bits. A subnet is written as an address and a prefix, such as 192.168.1.0/24: the first 24 bits are the network, the same for every address in it, and the rest tell the devices apart.

The same split written as a mask is the netmask: 255.255.255.0 is /24, ones for the network bits and zeros for the rest.

Sizes worth knowing

  • /24: 256 addresses, 254 usable. The usual home network.
  • /16: 65,536 addresses.
  • /30: 4 addresses, 2 usable, for a link between two routers.
  • /32: one single address.

In IPv4 the first address names the network itself and the last is the broadcast address, so neither goes to a device. In IPv6 almost every network is a /64, more addresses than anyone will use.

Why it matters

  • Two devices with addresses in different subnets can’t talk directly, even on the same Wi-Fi: a common reason a printer or NAS “disappears”.
  • A VPN or a second router using the same range as your home network causes clashes.

Run it on your own network

Netutilus puts every network tool in one app. Free to download; Pro is a one-time purchase, never a subscription.

Download on the Mac App Store ↗

More in learn

  • BufferbloatWhy the delay shoots up while your line is busy, and how to fix it on the router.
  • CertificatesHow a website proves who it is, and why a connection sometimes isn't trusted.
  • DNSThe internet's address book, which turns names like example.com into addresses.
  • Hops and TTLHow traffic crosses the internet one router at a time, and how traceroute finds each one.
  • ICMP and TCP PingTwo ways to time a host, and why one may answer when the other doesn't.
  • IP AddressesThe numbers devices are reached by: public and private, IPv4 and IPv6.