Question about determining IP subnet ranges, should be simple

Discussion in 'Mac OS X Server, Xserve, and Networking' started by ZMacintosh, Jan 26, 2013.

  1. macrumors 6502a

    Nov 13, 2008
    I had a question for those knowledgeable in networking.
    Trying to figure out how to determine the steps to get these answers.

    So for example a computer has an IP Address of , what is the range of useable IP addresses for this subnet
    So it would be -

    similar question, you have IP address of, what other IP addresses are on the same subnet?
    So & 192.168.2 would be on the same subnet

    Trying to figure out how they use the octets/bits to determine the range.

    Read through some CIDR notation info, but im still stuck on it, even though it seems very basic and simple.
  2. ChristianJapan, Jan 26, 2013
    Last edited: Jan 26, 2013

    macrumors 68040


    May 10, 2010
    The subnet mask in total have 32 bit.
    /24 means that the first 24 bits of the IP address define the network address while the last 8 bits define the range/size of that specific subnet.
    In case of /24 it would be 8 bits left which makes 1 to 254 valid IP addresses.

    It's actually very much the same as you first example with /24 to would be valid IP address in 192.168.1/24 would NOT be a valid address in 192.168.1/24

    If you want 192.168.1 and 192.168.2 to be in the same subnet you would need a netmask of /22 (for example)

    A good presentation with the bit masks is here
  3. thread starter macrumors 6502a

    Nov 13, 2008
    meant to say**

    so with the remaining 8 bits
    how they calculate to that? binary?
    i understand binary easier, always get stuck on this type of stuff.

    thanks for the link, reviewing it ab it more now
  4. macrumors 68040


    May 10, 2010
    Yes, binary.

    Those host number with all bit zero and all bits 1 are reserved. .0 and .255 for example.

Share This Page