Calculate IP ranges: it takes 3 bits more to get a full byte. Rule of thumb: 2N where N = number of bits to obtain a full byte in the binary representation In this case 23 = 8, the 1st range of IP addresses for the subnet /21 is: IP range: 10.80.80.1 -> 10.80.87.254 (not included: 10.80.80.0 network mask & 10.80.87.255 broadcast address) in this range, 10.80.84.0 and 10.80.83.255 are valid IP addresses, as it is only the first and the last IP address of the subnet that is reserved. Calculate Subnet mask: calculate in binary what they are worth 1111 1000 = 128 + 64 + 32 + 16 + 8
So the subnet mask for these IP ranges is 255.255.248.0