在子网/网络上定位计算机
情况如下:我有可以通过以太网进行通信的特殊设备。它通过以太网电缆连接到我的计算机,问题是这些设备会不时更换,并且它们具有不同的 IP 地址。他们总是从 192.168 开始。其余的可能会有所不同。设备响应 IMCP (ping)。现在我们有一个 IP 列表,我们可以对它们执行 ping 操作来查找设备。我们总是知道这个网络上只有两个设备(这个特殊设备和笔记本电脑)。
因此,我正在寻找一种解决方案,可以找到 192.168.255.255 子网上的计算机,并据此重新配置接口,关闭/打开它们,然后我可以连接到设备。你必须如何手动配置这些东西。
想法如何找到该子网下的计算机?我知道你可以进行广播 ping,例如: 平 192.168.1.255 但它不适用于 192.168.255.255
我可以使用 nmap,但这可能需要时间,例如: nmap -n -sP 192.168.0.0/24
但我也已经必须在子网 192.168.255.255 上,因为我理解。
我正在寻找为什么如何配置一切并在这个只有两台机器的非常小的本地网络上找到所有机器。
谢谢, -大卫
Here is situation: I have special device that I can communicate via ethernet. It's connected to my computer via ethernet cable and the problem is that these devices are changed from time to time and they have different IP addresses. They always start 192.168. and the rest might be different. Device answers to IMCP (ping). Right now we have a list of IPs and we ping them to find device. We always know that there is only two devices on this network (this special device and laptop).
So I am looking for a solution which would find the computers on 192.168.255.255 subnet and according that I would reconfigure interfaces, bring them down/up and after that I could connect to device. How you have to manually configure the stuff.
Ideas how to locate computers under this subnet? I know that you can do broadcast ping, like:
ping 192.168.1.255
But it doesn't work for 192.168.255.255
I could use nmap, but that would probably would take time, something like: nmap -n -sP 192.168.0.0/24
But I also already have to be on subnet 192.168.255.255 as I understand.
I am looking for why how to configure everything and find all machines on this very small local network with only two machines.
Thanks,
-david
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试 ping 全球广播地址 -
255.255.255.255
。You could try pinging the global broadcast address -
255.255.255.255
.