Как я могу пинговать диапазон IP-адресов одновременно
У меня есть несколько машин в диапазоне IP-адресов, которые я хочу пинговать одновременно, чтобы быстро и грязно определить, какие из них включены. Какое (бесплатное) программное обеспечение я могу использовать для этого?
9 ответов 9
Nmap доступен для Windows:
Самый быстрый способ — использовать Angry IP Scanner.

Я использую это так же, как вы хотите!
Я использовал эту команду
в командном файле по аналогичной причине
Бесплатный IP Scanner 1.6
Вот диапазон IP-адресов, которые вы можете заметить в:

Вместо того, чтобы вручную пропинговать все IP-адреса в вашей локальной сети, вы можете сделать следующее:
Откройте командную строку и введите:
-n 1 означает, что на каждый компьютер будет отправлен только 1 пакет проверки связи.
Измените 192.168.0 в соответствии с вашим собственным идентификатором сети.
Это пропингует все IP-адреса в сегменте сети 192.168.0.0 и создает текстовый файл с именем ipaddresses.txt в C:\, где будут перечислены только IP-адреса, которые дали ответ.
Вы также можете добавить -a к команде ping, чтобы преобразовать все отвечающие IP-адреса в имена хостов, но это приведет к тому, что выполнение скрипта займет значительное время:
Вы можете просто написать скрипт Bash, который просматривает диапазон IP-адресов и проверяет их связь. Пример, который пингует адреса в диапазоне от 10.1.1.1 до 10.1.1.255 (включительно):
Сохраните приведенный ниже скрипт на сервере с расширением .bat или .cmd и вызовите файл из командной строки. Он должен предложить ввести диапазон IP-адресов.
Пожалуйста, введите только три октета IP-адреса.
После выполнения команды она создаст текстовый файл pingnet.log в корне диска C. Этот файл должен дать вам список используемых и неактивных (бесплатных) IP-адресов.
Это довольно просто запустить, и это должно сэкономить вам массу времени.
Angry IP Scanner — это здорово, но я предпочитаю инструменты CLI. Посмотрите, сможете ли вы запустить этот скрипт powershell в Vista. https://github.com/webstersprodigy/PowerSploit/blob/Portscan/Recon/Invoke-Portscan.ps1
Я также предлагаю получить доступ к Linux CLI с помощью Linux Live CD / USB, двойной загрузки или виртуальной машины в VirtualBox. (Установите VirtualBox, добавьте новый vm, установите Debian.) Линукс CLI бесценен.
Из linux CLI запустите следующее:
Сканирование на основе PING
Настройте диапазон вашей сети (часть «172.10.1»), и все готово. Это предоставит список всех хостов в сети, которые отвечают на эхо-запросы ICMP (ping), и сопоставит их с вашим DNS-сервером.
Примечание. Это не самый надежный способ тестирования живых хостов, поскольку у них может быть заблокирован ICMP.
Сканирование на основе nmap
nmap -sP 192.168.1.0/24
Примечание: Nmap более надежен, так как является сканером портов и основывает свои результаты на активности не только на ответах ICMP. Он интенсивно используется пентестерами и заслуживает изучения.
How can I ping a range of IP addresses simultaneously [closed]
Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question.
Closed 7 years ago .
I have a bunch of machines on an IP address range which I want to ping simultaneously as a quick and dirty way of telling which ones are switched on. What (free) software can I use to do this?
9 Answers 9
The quickest way is to use Angry IP Scanner

I use it for the same way you want to!
![]()
Nmap is available for Windows:
I’ve used this command
in a batch file for a similar reason
Free IP Scanner 1.6
Here is the range of IP addresses as you can notice in:

Instead of manually pinging all IP addresses on your LAN you can do the following:
Open a Command Prompt and type:
-n 1 means that only 1 ping packet will be sent to each computer.
Change 192.168.0 to match you own network ID.
This will ping all IP addresses on the 192.168.0.0 network segment and create a text file called ipaddresses.txt in C:\, where it will list only the IP addresses that gave a reply.
You can also add -a to the ping command to resolve all the responding IP addresses to hostnames, but doing so will cause the script to take a considerable time to finish:
![]()
You could just write a Bash script that loops through an IP address range and pings them. An example that pings addresses in the range 10.1.1.1 to 10.1.1.255 (inclusive):
![]()
Save the below script on the server with an extension of .bat or .cmd and call the file from the command prompt. It should prompt you to enter the IP address range.
Please enter only three octets of the IP address.
Once the command has run, it will create a text file name pingnet.log in the root of C drive. That file should give you a list of used and down (free) IP addresses.
It is pretty simple to run, and it should save you loads of time.
Angry IP Scanner is great, but I prefer CLI tools. See if you can get this powershell script running in Vista. https://github.com/webstersprodigy/PowerSploit/blob/Portscan/Recon/Invoke-Portscan.ps1
I also suggest getting access to a Linux CLI by using a linux live cd/usb, dual boot, or a vm in VirtualBox. (Install VirtualBox, add a new vm, install Debian.) A linux CLI is invaluable.
From a linux CLI, run the following:
PING Based Scan
Adjust for your network range (the ‘172.10.1’ part,) and you’re off. This will provide a list of all hosts on the network that respond to ICMP echo (ping) requests, and resolve them against your DNS server.
Note: This is not the most reliable way to test for live hosts as they may have ICMP blocked.
nmap Based Scan
nmap -sP 192.168.1.0/24
Note: Nmap is more reliable as it is a port scanner and bases its results on the activity on more than just ICMP responses. It’s heavily used by pentesters and is worth learning.
How to Ping a Range of IP Addresses on Windows, Mac, Linux, and Cisco?
You can save time and resources by pinging multiple IP addresses simultaneously with the codes I’ll discuss in this guide.
This allows you to test the viability and reachability of these servers, audit the devices on a network, or identify devices that have a fixed DHCP address.
This guide takes a straightforward approach to successfully pinging a range of IP addresses on any network or server.
Can You Ping a Range of IP Addresses?
You can ping a range of IP addresses simultaneously instead of pinging one address per time. This helps save time and eliminates errors in covering the entire network.
Furthermore, you can customize your ping sweep to determine how many IP packets are sent to every address, the wait time for a response, and how many times the test should run, among other things.
However, you need to know the exact range of IP addresses within your subnet to shorten this process and have cleaner ping results.
Otherwise, you could start with the first three sets of octet values and leave the last octet to range between the values 1 and 255.

Ping vs. Ping Sweep: Why Ping an IP Range Instead of a Single IP Address?
Pinging an IP range instantly lets you determine whether the IP addresses within that range are available and reachable on the server.
It also shows you which IPs are connected to a device or what device is connected to thklat IP.
Typically, pinging a device or host allows you to determine whether that device or host exists or is reachable on a server.
Doing so relies on knowing the exact IP address of the device you’re pinging.

When this exact address is unknown, but you know the range within which the device’s IP address should lie, a ping sweep becomes more effective.
Rather than manually testing every IP by changing the decimal figures, pinging a range tests all IP addresses within that border to find the device/host you’re looking for.
Furthermore, pinging a range of IP addresses allows you to
- Improve and maintain network security by rooting out unauthorized devices on the same IP range or host.
- Find all the dead hosts on your network for troubleshooting or possible clean-up.
- Check that the IP addresses and their registered devices match the network documentation.
- Find anomalies in the host network.
While all of these are possible with a simple ping tool, it takes a lot of manual time and effort to get done. Besides saving a lot of time, ping sweeps also eliminate human errors when manually replacing IP address numbers over a host.
How Do I Ping Multiple Devices at Once?
The best way to ping multiple devices is to run a custom ping script if the devices are on the same subnet. This ensures they have identical octet states for the first three values with changing values for the last octet.
However, a cleaner approach is executing a successful script that only turns out successful results. Otherwise, the script returns up to 254 results, of which only a few could be the pinged devices.
Alternatively, multiple devices not on the same network subnet can be pinged simultaneously with a ping sweep tool.
These tools broaden the ping scope and eliminate time spent manually fetching and inputting each IP address. Ping sweep tools also work for multiple devices on the same subnet. Still, they’re better recommended for devices on multiple subnets or a large number of devices/hosts.
6 Methods to Ping a Range of IP Addresses
I’ve collated and described six of the most effective methods to perform a ping sweep on Mac, Windows, and Linux. I also include a guide on pinging a range of IP addresses via Cisco.

How to Ping IP Range Using CMD on Windows?
Requirements: Windows 7 or later.
Here’s how to ping an IP range using CMD on your Windows PC:
- Launch the Start Menu or press the Windows key.

- Search for “cmd” or “command prompt.”

- Hit “Enter” or navigate to the “Command Prompt” program and open it.
- First, we test that your CMD works fine. Type “ping [IP address]” without the quotation or brackets. I tried the IP addresses 192.168.1.101 (which I didn’t have access to on my network) and 192.168.0.1 (which is my router’s IP that I have access to).

- The above results show that your CMD works fine.
- Enter the following command into your Command Prompt. You can replace the IP address with the range you’re concerned with.

- This command pings all addresses between 192.168.0.1 and 192.168.0.254 once with a wait time of 10ms before determining whether that host/device is active on the IP range.
| Variables | Meaning | Comment |
|---|---|---|
| 192.168.0. | IP address | You can change the three initial octets to reflect the IP address range you need to test. |
| -w 10 | Wait time | Change the number here to determine how long (in milliseconds) the ping should wait for a reply from each device/host/server it pings. Increase or remove the number for slow networks. |
| (1,1,254) | IP range | Edit the last number in the bracket (254) to define a custom end range. This can’t be more than 255. |
| -n 1 | Ping packets | Increase the number to determine how many ping packets are sent to each device/host on the network. |
How to Ping an IP Range Using PowerShell on Windows?
Requirements: Windows 10
Windows PowerShell is also an interesting tool to ping a range of IP addresses. You’ll need a PC running Windows 10 for this. Here’s how to do it:
- Launch the start menu or press the Windows key.
- Search for “PowerShell” and launch the app.

- Let’s test if the ping function works with a single IP address you have access to. Use the function “ping [IP address]” without the quotes and brackets.

- If it works, enter the two-line code below into your Windows PowerShell:
- The script scans and tests all the IP addresses in this range.

You’ll notice that this code scans a single IP address multiple times. That’s just the PowerShell script checking through the other IP addresses to see if there’s any with a successful outcome besides your computer.
For example, the screenshot below shows you what happens when it finds another successful IP address on the network.
Ping all addresses in network, windows
Is it possible in windows cmd line to check all of the network addresses (with ping or similar) to see which ones are taken/ have active devices:
ie. something that does something like the following:
This is psuedo code obviously. I am wondering if it is possible to do something like this in windows cmd. It would be great if you didn’t need a batch file, but i understand if this is impossible.
PS. Also please mention if there is a program to do this, but it would be nice to do it in cmd.
![]()
12 Answers 12
Open the Command Prompt and type in the following:
Change 192.168.10 to match you own network.
By using -n 1 you are asking for only 1 packet to be sent to each computer instead of the usual 4 packets.
The above command will ping all IP Addresses on the 192.168.10.0 network and create a text document in the C:\ drive called ipaddresses.txt. This text document should only contain IP Addresses that replied to the ping request.
Although it will take quite a bit longer to complete, you can also resolve the IP Addresses to HOST names by simply adding -a to the ping command.