IP Subnet help


sorabji.com: I need advice: IP Subnet help
THIS IS A READ-ONLY ARCHIVE FROM THE SORABJI.COM MESSAGE BOARDS (1995-2016).

By Spider on Friday, April 25, 2003 - 03:47 pm:

    Can one of you translate this IP into a range, or point me to an IP calculator that will do it for me?

    123.456.789.0/22

    (So, I'm looking for something like 123.456.84-100.* or whatever it is)

    Thanks!


By Nate on Friday, April 25, 2003 - 04:29 pm:

    123.456.789.0-22

    do you need a subnet mask for that range?


By Spider on Friday, April 25, 2003 - 04:37 pm:

    Really? I thought the /22 affected the third octet ...? Aw, hell, I don't know what I'm doing. I'll use your answer -- thanks.

    No, no subnet mask. Our system deals with ranges only (I don't know if there's a technical term for this....please excuse my ignorance), so I need every IP translated out of subnet notation and into, you know, just straightforward xxx.xxx.xxx-xxy.* notation.

    The note I received reads, "Our network is 123.456.789.0/22. Your networking people should understand what that means." Only, I'm the networking person, and I don't understand what that means.


    Sheesh, my job gets better and better...


By Nate on Friday, April 25, 2003 - 04:45 pm:

    no not really.

    123.456.80-95.*



By Spider on Friday, April 25, 2003 - 04:49 pm:

    Shoot, man, don't fool me like that! I really need to know.


By Spider on Friday, April 25, 2003 - 04:52 pm:


By dave. on Friday, April 25, 2003 - 04:54 pm:

    not enough info. are you needing a list of ips in use, available ips, are you doing a sweep and need a range to narrow the search, are you assigning seat licenses?

    is 22 the name of a directory?

    it all depends on what you're trying to do with the info.

    i'm inclined to say they have 22 dynamic ips on a class c subnet.


By dave. on Friday, April 25, 2003 - 04:56 pm:

    or that.


By Spider on Friday, April 25, 2003 - 05:02 pm:

    Actually, it doesn't matter -- I just discovered that their subscription to our service was shut off last July. Of course they're having access problems!

    Dave, I wish I could tell you...I'm next to clueless about this stuff.

    I work for an online research database -- we have to input your IPs in our system in order to grant you access to our websites. Our IP Address Table only accepts IPs in, like, standard notation. (E.g., 123.45.67-89.* or 123.45.67.* or 123.45.67.89). We can't deal with subnets, network masks, or anything like that.


By dave. on Friday, April 25, 2003 - 05:05 pm:

    i hate that stupid binary octet 2n-2 crap.


By Antigone on Friday, April 25, 2003 - 05:30 pm:

    Well, here's your first security lesson, Ms Network.

    Never reveal the following information in a public forum:

    1) The method your company uses to verify user identity.
    2) The identification information a client is using.
    3) The subscription status of a current client.

    I leave it as an exercise for the student to discover how an attacker can gain access to the system using this information...


By dave. on Friday, April 25, 2003 - 05:59 pm:

    relax, mr paranoid.


By Antigone on Friday, April 25, 2003 - 06:15 pm:

    Not paranoid. Sensible.


By patrick on Friday, April 25, 2003 - 08:02 pm:

    you dont win friends with salad tiggy


By Antigone on Friday, April 25, 2003 - 08:35 pm:

    You do if they're rabbits.

    Or giraffes.

    Or ibexes.

    Or elk.


By Nate on Friday, April 25, 2003 - 09:18 pm:

    oops. i gave you /20.


By dave. on Friday, April 25, 2003 - 10:37 pm:

    oops. i gave you horseshit.

    i even took a half day long course in subnetting, but i never saw anything in xxx.xxx.xxx.0/xx format. perfect example of why knowing a little bit is much more dangerous than knowing nothing.

    i sometimes think i lack the capacity to learn anything in depth. i have a real talent for learning about anything up to a point. it's like i was born with a beginners course knowledge of everything but i can never get beyond that point.

    fuck, i abhor being wrong. i always seem to be wrong.


By spunky on Friday, April 25, 2003 - 11:33 pm:

    subnets on friday night are a sin before god


By Dougie on Monday, April 28, 2003 - 03:09 pm:

    Spider, here's an easy way I learned to subnet:

    Take 8 binary digits and write them out from highest on left to lowest on right:

    128 64 32 16 8 4 2 1

    Then starting at 128 from left to right, add the number next to it to get the next subnet mask:

    128 192 224 240 248 252 254 255

    If somebody gives you 172.16.1.0/22 the /22 means the number of bits in the subnet which would be 255.255.252.0 or 11111111.11111111.11111100.00000000 in binary (there should be 22 "1's").

    Assuming you're using "0" subnets (meaning a subnet may start on 0, such as 172.16.0.1) the first valid subnet would start on 172.16.0.1 and would go up to 172.16.3.254 (as valid hosts). To find the next subnet, you take the number you used for the netmask (.252) in your table you wrote out above -- it's 3 places from right. Then use your binary digits table you wrote out, and take the number 3 places from the right which is 4. This is the number you increment with to get to the next subnet. Thus, 172.16.4.0 is the next valid subnet.

    For the number of networks that are valid in this subnet, for .252 in your table, you count from left to right 6 bits. 2^6 = 64 valid subnets (going from 172.16.0.0 to 172.16.252.0)

    To find the number of hosts for each subnet, you count the number of 0's in the host portion (255.255.252.0 in binary is:
    11111111.11111111.11111100.00000000)

    Everything that's a zero is host portion, which gives you 10 bits of zeroes. 2^10 - 2 = 1022. You must subtract 2 because one is the actual network or wire, and one is for the broadcast address in each subnet. Have fun with this, and then we'll move onto supernetting.


    Hope this helps.


By Spider on Friday, December 12, 2003 - 05:12 pm:

    Where oh where is Dougie? I wrote a quick guide to reading IPs for my replacement, and I need to know if it's full of factual or terminological errors. I'm assuming absolutely no previous knowledge of IP info, so it's really basic.

    Screw it, I'll post it here. Let me know if I should make any corrections:


    **************

    An IP consists of four groups of numbers, called octets, separated by dots. Ex: 111.222.33.44

    Each octet has a maximum limit of 255, so if a customer sends you something like 204.279.30.9, you will know there is a typo in the second octet.

    An asterisk, or wildcard, is a shorthand way of writing 1-255. 102.45.78.* is the same as 102.45.78.1-255

    A zero acts as a network holder, so it acts as a wildcard or a 1-255 range. Ex: 102.45.78.0, for example, is equivalent to 102.45.78.* and 102.45.78.1-255 in our system. If a customer gives you an IP that contains a range beginning with 0, like 102.45.0-16.*, you need to rewrite this as 102.45.1-16.* when you submit it to Dayton. Otherwise, when our system sees the zero, it will read it as a network holder and translate the IP to 102.45.1-255.* or 102.45.*.*.

    A customer might submit a block of IPs like this:

    102.45.70.*
    102.45.71.*
    102.45.72.*
    102.45.73.*

    You should rewrite this as 102.45.70-73.* when you submit the request to Dayton.

    Whenever you have a range in a certain octet (like 70-73 in the third octet above), all the following octets must have wildcards (*) in them. So 102.45.70-73.* has an asterisk in the fourth octet, and if you were sent something like

    102.45.*.*
    102.46.*.*
    102.47.*.*

    …you would rewrite this as 102.45-47.*.* with the asterisks in the third and fourth octets.

    Our system does not accept subnet notation (e.g., 102.45.78.0/24), so all IPs that come to you in this format must be translated into simple range notation. Use an IP calculator (like http://jodies.de/ipcalc ) to do this for you, or ask the customer to reformat the IP into range notation. You might also get something like this:

    193.1.1.0 255.255.255.224

    Whenever you see anything like 255.255.255.224, this is a subnet mask. Another common one is 255.255.255.0. Our system does not accept subnet masks, either, so you need to translate these with the IP calculator or ask the customer to reformat the IPs into range notation. In our example’s case, the calculator gives you a result of 193.1.1.1-254 or 193.1.1.*

    ********************


By TBone on Friday, December 12, 2003 - 08:00 pm:

    Looks good to me.
    .
    Whenever I have to teach someone about IP addresses, I can't resist trying to give them a lesson in binary so they understand how netmasks and subnets work and can figure them out by hand... which never goes well. _I_ think it's really nifty. Why doesn't anybody else?


By Antigone on Friday, December 12, 2003 - 08:07 pm:

    boogie


bbs.sorabji.com
 

The Stalking Post: General goddam chit-chat Every 3 seconds: Sex . Can men and women just be friends? . Dreamland . Insomnia . Are you stoned? . What are you eating? I need advice: Can you help? . Reasons to be cheerful . Days and nights . Words . Are there any news? Wishful thinking: Have you ever... . I wish you were... . Why I oughta... Is it art?: This question seems to come up quite often around here. Weeds: Things that, if erased from our cultural memory forever, would be no great loss Surfwatch: Where did you go on the 'net today? What are you listening to?: Worst music you've ever heard . What song or tune is going through your head right now? . Obscure composers . Obscure Jazz, 1890-1950 . Whatever, whenever General Questions: Do you have any regrets? . Who are you? . Where are you? . What are you doing here? . What have you done? . Why did you do it? . What have you failed to do? . What are you wearing? . What do you want? . How do you do? . What do you want to do today? . Are you stupid? Specific Questions: What is the cruelest thing you ever did? . Have you ever been lonely? . Have you ever gone hungry? . Are you pissed off? . When is the last time you had sex? . What does it look like where you are? . What are you afraid of? . Do you love me? . What is your definition of Heaven? . What is your definition of Hell? Movies: Last movie you saw . Worst movie you ever saw . Best movie you ever saw Reading: Best book you've ever read . Worst book you've ever read . Last book you read Drunken ramblings: uiphgy8 hxbjf.bklf ghw789- bncgjkvhnqwb=8[ . Payphones: Payphone Project BBS
 

sorabji.com . torturechamber . px.sorabji.com . receipts . contact