[NTLUG:Discuss] ...a little binary IP help, please...

Dennis Myhand 1dmm9671 at unixstew.tstc.edu
Wed Jun 27 08:50:55 CDT 2001


Dear Fred:

The place values in an octet are:

128  64  32  16  8  4  2  1

There are 8 places.  You have 9 places with 256 being listed.  The 8 places
add up to 255, or 256 addresses when you count 0, which binary does.  Hope
this helps.    Peace, Dennis in Waco

Fred James wrote:

> I am trying to understand the binary representation of an IP address,
> and the process of ANDing with the (sub)netmask.
> The book states that the decimal address 192.168.0.20 would be 11000000
> 01101000 00000000 00010100 in binary, and then labels those bytes as
> 192.68.0.20
> I thought the place values were: 256 128 64 32 16 8 4 2 1, in which case
> x.x.0.20 is OK, but the 192.168.x.x, or 192.68.x.x seems wrong.
> Any help would be appreciated.
>
> --
> ...small is beautiful...
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss




More information about the Discuss mailing list