Status
Not open for further replies.

#### Kenji4861

##### Banned

If I was told to make sure I have IP 1.2.0.0/16 whitelisted, would that cover 1.2.3.4?
I just want to make sure it covers 1.2.0.0 all the way up to 1.2.255.255

I would think it does since 255.255.(8 bit).(8 bit)
and 8 bit goes up to 256.

Any help would be appreciated.

#### spidey07

##### No Lifer
/16 is 16 bits of mask so the first two octets would need to remain the same, so you're correct it covers 1.2.0.0 - 1.2.255.255

Thanks spidey07!

#### WildHorse

##### Diamond Member

the subnet mask is what tells your computer which portion of the IP address identifies the network, and which part of the IP address identifies the local address. A /16 means the first 16 bits from the left in your IP address are the network part. The remaining 2 octets to the right, in this case, can be part of useable IP addresses for your computers, printers, digital projectors, pda's, etc.

A /16 (alternatively called CIDR /16) subnet mask means the first 16 bits are all "1"s. If you put the number 255 into a calculator and convert it to binary you will see that 255 in the ordinary decimal numbering we use every day converts into eight "1"'s. That's 8 bits of "1".
255 in decimal = 11111111 in binary.

In other words, the mask /16 tells your computer that your subnet mask is 255.255.0.0. It calculates that /16 can have up to 256 different subnets, and up to 65,536 different host addresses per each one of those subnets, of which 65,534 are actually useable. The nonuseable addresses are for the broadcast adress and the "zero subnet", which may or may not be not assignable by you.

It doesn't have to be /16, it can be /17 or /19 or ...

The 1 means the corresponding bit in the IP address identifies the network.

IP address: ........188.10.18.2 (say, to pick a random example)
Subnet mask: .....255.255.0.0 (first 2 octets are all "255" to human eyes, but are all "1" to your computer)

So in the above example, the network address is 188.10.0.0. An individual IP address on that network is the 188.10.18.2.

In other words, the numbers above are for human convenience only. The computer only sees them in binary.

In the binary that the dumb computer understands: