On page 1-52 under "Lesson 3 Review", question 2 states:
"Your company has registered the network ID 131.107.0.0, which uses the
default subnet mask 255.255.0.0. You would like to create a custom subnet
mask that allows you to divide that network into the maximum number of
subnets that would allow you to have at least 20 hosts per subnet. What
custom subnet mask would you use?"
Question 2 Answer states:
"To start with, you know you will have to borrow some bits from the host ID
in the third and fourth octets. Any custom subnet mask with a value greater
than 240 in the tourth octet will give you fewer than 20 hosts per subnet.
Using 255.255.255.224 as a subnet mask will give you 4095 possible subnets
with 31 hosts possible per subnet. It is also common practice to subtract 2
addresses from the possible number of hosts to account fro host IDs that
contain all zeros or all ones. Even with this margin, you still have 30
possible hosts."
I apologize for re-typing all of this but my question is about the answer.
Where do they get the number 4095 possible subnets? Is this a typo and if
not, where is the 4095 coming from? I understand every other part of the
question and answer except for that. Someone who knows please help. Thanks!