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

./aal al_h at technologist.com
Wed Jun 27 14:21:59 CDT 2001


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.


you have it right and so do they
you merely counted to 9 places, hence the 256 in your MSD
drop the 256, redo the math

./aal


> Any help would be appreciated.
> cuss



More information about the Discuss mailing list