onprema

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