Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

IP range - IP range tool


  • Please log in to reply
6 replies to this topic

#1 sewellesquire

sewellesquire

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:09:15 PM

Posted 06 July 2016 - 07:45 AM

Hi,

I have a set of IP ranges (CIDR blocks), which I call SetA.

I have another set of IP ranges (CIDR blocks), which I call SetB.

I want to know the set of IP ranges in SetA minus SetB.

Is there a tool (possibly online) that I can use that will tell me that, or do I need to resort to pen and paper?

Cheers.



BC AdBot (Login to Remove)

 


#2 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:01:15 PM

Posted 06 July 2016 - 04:54 PM

Simple subnetting.  Lots of online subnet calculators



#3 Trikein

Trikein

  • Members
  • 1,321 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Rhode Island, US
  • Local time:03:15 PM

Posted 06 July 2016 - 05:17 PM

Try MxToolbox for simple calculation, and try this download for more advanced stuff.


Edited by Trikein, 06 July 2016 - 05:18 PM.


#4 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:01:15 PM

Posted 06 July 2016 - 10:43 PM

one of my favs

http://www.subnet-calculator.com/cidr.php



#5 TheJokerz

TheJokerz

  • Members
  • 286 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Ohio
  • Local time:04:15 PM

Posted 07 July 2016 - 07:38 AM

Have to love subnetting!!!


utl8q0-5.png


#6 sewellesquire

sewellesquire
  • Topic Starter

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:09:15 PM

Posted 08 July 2016 - 04:59 AM

Thanks, but the sets are large. Snippet:

 

SETA
172.18.0.0/16
172.19.0.0/16
172.20.0.0/16
172.22.0.0/16
172.25.0.0/16
172.27.0.0/16
172.28.0.0/16
172.30.0.0/16
192.168.1.0/24
192.168.64.0/24
192.168.65.0/24
192.168.68.0/24 
..
 
 
SETB
172.18.254.0/29
172.18.254.128/29
172.21.48.0/24
172.25.27.0/24
172.25.31.0/24
172.25.32.0/21
172.30.16.0/20
192.168.68.16/28
192.168.68.32/28 
..
 
I'd like SETA minus SETB. Over time, the sets will change, so I'd have to do this more than once. I just wondered whether there was a tool to make things a bit quicker for me, and I can't see one. I guess I could write one but that's a fair amount of up-front work (for me at least).


#7 Wand3r3r

Wand3r3r

  • Members
  • 2,027 posts
  • OFFLINE
  •  
  • Local time:01:15 PM

Posted 09 July 2016 - 10:34 AM

Why would want to do this?

 

Doesn't make sense to me to want to have 172.18.0.0/16 which gives you 172.18.0.0 to 172.18.255.255 and then subtract 172.18.254.0/29 which gives you 172.18.254.0 to .7

 

Its like you want to invalidate a range of ips.  How do you expect to use 172.18.254.8 through 172.18.255.255?  Use /29 for each of the remaining subnets?

 

I would also point out it is unusual to subnet this way.  Usual way would be to take 172.18.0.0 and carve it up with say /17 which gives you a range of 172.18.0.0 - 172.18.127.255

This leaves you with another /17 range of 172.18.128.0 - 172.18.255.255

You can do half and two quarters or half and 4 eights, etc...

 

The idea is to be able to divide up the entire range into usable parts.  This isn't what you are doing.


Edited by Wand3r3r, 09 July 2016 - 10:35 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users