CIDR IP Range Calculator
August 26, 2009 7:25 AM
Subscribe
Is there a CIDR IP address calculator that can do what I want? If I enter an arbitrary beginning IP address and an ending IP address, it should then give me a list of CIDR-ified IP ranges.
Lets say I have to authorize an arbitrary range of IP addresses in an .htaccess file. The list looks like XXX.XXX.XXX.97 - XXX.XXX.XXX.255.
I could just set the whole class C range like so, XXX.XXX.XXX.0/24, but that includes IP addresses that should not have access.
The most compact way to display this is as such:
XXX.XXX.XXX.197
XXX.XXX.XXX.198/31
XXX.XXX.XXX.100/30
XXX.XXX.XXX.104/29
XXX.XXX.XXX.112/28
XXX.XXX.XXX.128/25
I can do it with my brain but a tool to help speed this up would be great. Anybody know of one?
posted by chillmost to computers & internet (4 comments total)
6 users marked this as a favorite
Example results for 192.168.1.97 - 192.168.1.255:
Number of subnet for Ip Range
192.168.1.97/255.255.255.255
192.168.1.97/0.0.0.0
CIDR from Netmask
192.168.1.97/32
Number of subnet for Ip Range
192.168.1.98/255.255.255.254
192.168.1.98/0.0.0.1
CIDR from Netmask
192.168.1.98/31
Number of subnet for Ip Range
192.168.1.100/255.255.255.252
192.168.1.100/0.0.0.3
CIDR from Netmask
192.168.1.100/30
Number of subnet for Ip Range
192.168.1.104/255.255.255.248
192.168.1.104/0.0.0.7
CIDR from Netmask
192.168.1.104/29
Number of subnet for Ip Range
192.168.1.112/255.255.255.240
192.168.1.112/0.0.0.15
CIDR from Netmask
192.168.1.112/28
Number of subnet for Ip Range
192.168.1.128/255.255.255.128
192.168.1.128/0.0.0.127
CIDR from Netmask
192.168.1.128/25
posted by jedicus at 8:27 AM on August 26