在子网/网络上定位计算机 [英] Locating computer on subnet/network

查看:136
本文介绍了在子网/网络上定位计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这种情况下:我有一个特殊的设备,可以通过以太网进行通信.它通过以太网电缆连接到我的计算机,问题是这些设备不时更改,并且它们具有不同的IP地址.他们总是以192.168.开头其余的可能会有所不同.设备回答IMCP(ping).现在,我们有一个IP列表,我们对其进行ping操作以查找设备.我们一直都知道,该网络上只有两个设备(这个特殊设备和笔记本电脑).

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).

因此,我正在寻找一种解决方案,该解决方案可以在192.168.255.255子网中找到计算机,并据此重新配置接口,使其处于关闭/打开状态,然后可以连接至设备.您必须如何手动配置这些内容.

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.

想法如何在此子网下找到计算机?我知道您可以广播ping,例如: ping 192.168.1.255 但不适用于192.168.255.255

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

我可以使用nmap,但这可能会花费一些时间,例如:nmap -n -sP 192.168.0.0/24

I could use nmap, but that would probably would take time, something like: nmap -n -sP 192.168.0.0/24

但是据我了解,我还必须位于子网192.168.255.255上.

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.

谢谢, -大卫

推荐答案

您可以尝试ping通全局广播地址-255.255.255.255.

You could try pinging the global broadcast address - 255.255.255.255.

这篇关于在子网/网络上定位计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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