dcsimg
Results 1 to 3 of 3

Thread: [RESOLVED] IP Subnet calculator

  1. #1

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Pointless Forest 38.517,-92.023
    Posts
    9,227

    Resolved [RESOLVED] IP Subnet calculator

    I need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test.

    The calculator can do one of two things:

    1 - given an existing network and CIDR(mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.

    2 - given an existing network and CIDR(mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.

    So if you have a subnet problem you think would be good to check, please post here. I'll post the results.

    Thanks in advance!
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  2. #2

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Pointless Forest 38.517,-92.023
    Posts
    9,227

    Re: IP Subnet calculator

    This was asked somewhere else

    Code:
    173.73.64.0 /20. 
    
    Divide the network block in order to provide the following subnetworks:
    
    1 - with at least 1800 hosts
    2 - with at least 500 hosts each
    3 - with at least 240 hosts each
    Here is the result from the calculator

    Code:
    173.73.64.0  /21 -> 1,800  (2,048)
    173.73.72.0  /23 -> 500  (512)
    173.73.74.0  /23 -> 500  (512)
    173.73.76.0  /24 -> 254  (256) ++
    173.73.77.0  /24 -> 240  (256)
    173.73.78.0  /24 -> 240  (256)
    173.73.79.0  /24 -> 240  (256)
    The ++ line was inserted by the calculator as an indication of the largest block left available.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Pointless Forest 38.517,-92.023
    Posts
    9,227

    Re: IP Subnet calculator

    Going to mark this resolved, but an interesting question about non-contiguous masks was asked in another forum. So I added it to the calculator. Here is an example.

    This is one subnet, with 28 bits of mask, which means there are 14 hosts available.

    Code:
    Mask - 11111111111111111111111100111100
    192.168.1.0 Network Number
    192.168.1.1
    192.168.1.2
    192.168.1.3
    192.168.1.64
    192.168.1.65
    192.168.1.66
    192.168.1.67
    192.168.1.128
    192.168.1.129
    192.168.1.130
    192.168.1.131
    192.168.1.192
    192.168.1.193
    192.168.1.194
    192.168.1.195 Network Broadcast
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width