How big is a 22 IP range?

How big is a 22 IP range?

When we first wrote our blog about how to calculate the 22-IP range we left a bit of a question unanswered: what does a 22-IP range really mean?

Is it worth calculating a whole day's worth of IP addresses, or is it best to consider it an hour or two? Since then, we've been thinking about that and came up with some conclusions. So let's run through the math.

We assume that there are 50,000 addresses in a /24 subnet, which is a common setup. We also assume that the number of unique addresses in a network is equal to the number of IP addresses in a /24. That's not actually true, but it's a reasonable assumption for most network admins because they're rarely, if ever, looking at more than 24 hosts.

So, if a network has a block of 50,000 addresses, and a subnet of 24 addresses, then the number of unique IP addresses in the entire network is 100,000. A large organization might have many blocks and subnets, and the aggregate of all these blocks and subnets is larger than 100,000. If you can see your network as a whole, then the math works out pretty well.

However, if you're looking at a single subnet or block, then it doesn't always make sense to say that you need a block of 50,000 IP addresses. Sometimes, you only need 22 addresses to cover all the hosts on the subnet. So, we'll need a different calculation.

If you're familiar with how IP addresses work, then you can do the math pretty easily. If you're not, then you might want to read a bit about how IP addresses work before going any further.

How do you calculate IP range?

The way that I'd handle this is by creating a table in MySQL and using that to determine whether or not a domain name has been successfully contacted.

The following table would look something like this (you can use whatever columns you need here): CREATE TABLE IF NOT EXISTS `domain` (. `id` INT(11) NOT NULL AUTOINCREMENT. `domain` VARCHAR(32) NOT NULL. `startip` INT(11) NOT NULL. `endip` INT(11) NOT NULL. PRIMARY KEY (`id`). UNIQUE INDEX `id` (`id`). ) DEFAULT CHARSET=utf8;. Then, the query would be as follows: SELECT `id`, `domain`, `startip`, `endip` FROM `domain`. WHERE `domain` IN ('somedomain', 'anotherdomain', .) AND `startip` >= `someip` AND `endip` <= `someip`;. This should allow you to return domains that have a matching IP range. As far as I know you dont have any reliable way to make a calculation from ip and number of ip. I would recommend you to make a small tool which could add/edit/delete/check/compare ip's of any site. When somebody adds/edits/deletes/checks/compares you will also be able to keep track of their details (ip's).

With these ip's you will be able to check if an ip has already been used for the domain and see who has done it.

What is the valid range of IP?

xangua: I believe its between 8 and 16.

xangua: but don't check the source. is there a good way to monitor traffic on a wireless network without installing anything extra besides firefox? I see, but what I understand is that from the moment I start conecting to my connection, at that moment i'm not conecting in http and https. for example I started a torrent, didn't finished yet, then the moment it finishes, im not in the tornet because it doesn't have traffic. can anyone help me here? I just installed xubuntu and now it has taken over the boot selection screen of when I select 'try ubuntu' or install. (also my keyboard is broken) no matter what I do its either tty or x. Hello, anyone can help me

I have a Ubuntu 10.04 system that I want to upgrade and I need to know if this is possible without reinstalling the os

Thanks I have tried all the commands that seem to point in that direction (grub1/2 command line and recovery mode. filiweb: what's it do now? filiweb: upgrade without touching the files

filiweb: no. filiweb: why not re-install. lickalott: so you can boot up. ikonia, I just want to upgrade, without any risk of loss. filiweb: ok - you're done. so I can't fix it right now because I can't use the computer. filiweb: how can it be a risk of loss if you're not doing anything ?

Related Answers

Can you unlock an iPhone using the calculator?

I had the passcode on my iPhone a...

Is there a free online graphing calculator?

That's a question I've asked myself, because there are plenty of g...

What calculator is allowed on the SAT?

What about the TI-81? I never thought of it. I was just wonder...