1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

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

    #1
    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 10.1.5.3 , what is the range of useable IP addresses for this subnet 10.1.5.3/24
    So it would be 10.1.5.1 - 10.1.5.254


    similar question, you have IP address of 192.168.1.15/24, what other IP addresses are on the same subnet?
    So 192.168.1.68 & 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 demi-god

    ChristianJapan

    #2
    Correct.
    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

    192.168.1.1 to 192.168.1.254 would be valid IP address in 192.168.1/24
    192.168.2.xxx 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 http://en.wikipedia.org/wiki/Subnetwork
     
  3. macrumors 6502a

    #3
    meant to say 192.168.1.2**

    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 demi-god

    ChristianJapan

    #4
    Yes, binary.

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

Share This Page