在子网/网络上定位计算机

编程入门 行业动态 更新时间:2024-10-28 21:30:55
本文介绍了在子网/网络上定位计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在这种情况下:我有一个特殊的设备,可以通过以太网进行通信.它通过以太网电缆连接到我的计算机,问题是这些设备不时更改,并且它们具有不同的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.

更多推荐

在子网/网络上定位计算机

本文发布于:2023-06-08 15:37:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/583980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:子网   计算机   网络

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!