Bits Borrowed Subnet Mask Network Increment
1 128 128
2 192 64
3 224 32
4 240 16
5 248 8
6 252 4
7 254 2
8 255 1
If you take the 'bits borrowed' in the subnetted octect you can use this quick reference to get your mask and then your network increments.
As for your other question,
A /30 says turn on 30 bits in the subnet mask, starting at the left.
So for example if you owned the following IP Address
185.27.0.0/30 , your mask written in decimal would be --
255.255.255.252
Your mask written in binary would be 30 1's and 2 0's. (There are 32 bits in a subnet mask. 4 octects of 8 bits each)
11111111.11111111.11111111.11111100
187.27.0.0 is a Class B address. The default subnet mask for a Class B address is 255.255.0.0.
Or, in other words the first 16 bits from the left are turned on. You can't change this. So by default your mask is 11111111.11111111.00000000.00000000
Since this example uses a Class B address you know that the first 16 bits are already on, so with a /30 mask, you can surmise that you have
borrowed 14 bits from what was designated for host address (16 + x = 30, therefore x = 14).
11111111.11111111.bbbbbbbb.bbbbbb00 -
the 1's are on by default,
the b's are borrowed from Host bits to use as Network bits
the 0's are left over for your Hosts.
With 14 bits to play with (those 14 b's up above), you can make 16,382 networks which can each have 2 hosts on them.
The way I came up with those numbers is as follows
2 raised to the borrowed bits minus 2 or ((2^14)-2) = 16,382 unique combinations that can be formed by using those 14 bits.
2 raised to the host bits leftover minus 2 or ((2^2)-2) = 2 unique combinations that can be made by using those 2 bits.
I hope this helps,
Patty
![[ponytails2] [ponytails2] [ponytails2]](/data/assets/smilies/ponytails2.gif)