如何ping多个IP地址 [英] How to ping multiple ip address

查看:170
本文介绍了如何ping多个IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想同时ping 500次三个不同的IP地址.如果这些ping不同时,这将是一个简单的问题.有人可能会说打开三个cmd,然后开始每个ping您的ip ....嗯,这行得通,但是我正在寻找一种更聪明的方法?我进行了搜索,发现在Linux中使用一种方法,我正在Win7上工作.

I want to ping 500 times three different ip address SIMULTANEOUSLY. If these pings are not the same time that will be an easy question. Somebody may say about open three cmd and start to ping your ip in each one.... ummm thats work But I'am finding to smarter way? I searched and I found one way in Linux, I'm working on Win7.

推荐答案

如果您想在事后比较延迟,可以这样做:

If you want to compare delays afterwards you could so something like this:

@echo off

setlocal

start "" "%COMSPEC%" /c ping -n 500 192.168.1.23 ^>log1.txt
start "" "%COMSPEC%" /c ping -n 500 192.168.1.42 ^>log2.txt
start "" "%COMSPEC%" /c ping -n 500 192.168.1.113 ^>log3.txt

这3个日志文件包含每个ping命令的输出.

The 3 log files contain the output of each ping command.

这篇关于如何ping多个IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆