Thanks Chris ... it's not all 100% clear now, but slowly understanding more. When I eventually "get it" I'll create a php script to do it for me *g*.

Thanks again for your time.

I did find this though: http://logi.cc/nw/NetBitCalc.html (using the netaddr option).

Maybe it'll interest others too.

Ralph

Chris Boot wrote:
Hi,

I used the "IP Address Converter" section.

I got the binary for the first IP (218.144.0.0), which is:
11011010 10010000 00000000 00000000

Then for the second (218.159.255.255), which is
11011010 10011111 11111111 11111111

Notice how the first 12 bits stay the same, and the last 12 change? 12 is the magic number in this case. :-)

There should be an easier tool for this, but it does the trick.

Chris

-- gentoo-user@gentoo.org mailing list



Reply via email to