Lee Learns

Calculating the number of available IPs in a subnet

One thing I always have to get help with is determining how many IPs are in a /N subnet?

Today I learned that it's simply 2^(32-N).

For example, in a /28 subnet there are 2^4 (16) IP addresses available.

#networking