Linux 如何获取连接到我的路由器的设备详细信息?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11643347/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to get the devices details that are connected to my router?
提问by pradiptart
I have problem in getting list of devices that are connected to my router.On the way to solve this question I have many problems to solve ,to get the answer of my question I have another question to solve as follow.Actually I have to get the device details connected to the router.
我在获取连接到我的路由器的设备列表时遇到问题。在解决这个问题的过程中,我有很多问题需要解决,为了得到我的问题的答案,我还有另一个问题需要解决如下。实际上我必须得到连接到路由器的设备详细信息。
I am working in a company and I am having an IP for my pc which is a private IP only .e.g ;10.0.2.35
我在一家公司工作,我的电脑有一个 IP,它只是一个私有 IP。例如;10.0.2.35
Now I have to go from this IP,my questions are as follows
现在我必须从这个IP出发,我的问题如下
1.first question is How to get the router Ip,some how i got this by using
1.第一个问题是如何获得路由器IP,我是如何通过使用获得的
route
路线
command and i got some table from that table a FLAGS column is there and a 'G' will be there in one row and the 'Gateway' column of that row give me the router's address.I don't know it is correct or not,If not kindly give the solution for this.
命令,我从该表中得到了一些表,那里有一个 FLAGS 列,一行中有一个“G”,该行的“网关”列给我路由器的地址。我不知道它是否正确,如果不请给出解决方案。
2.second question is how to get the list of devices connected to this router ,is it possible to get the list of devices connected to this router.If yes can any one give some solution to get this information.
2.第二个问题是如何获取连接到此路由器的设备列表,是否有可能获取连接到此路由器的设备列表。如果是,任何人都可以提供一些解决方案来获取此信息。
3.Third question is ,Is it possible to get the type of device connected to router.As it may be a PC,a Printer,a Mobile etc.
3.第三个问题是,是否可以将设备类型连接到路由器。因为它可能是PC,打印机,手机等。
If this are possible then kindly tell some solution .I need this for my Project .
如果这是可能的,那么请告诉一些解决方案。我的项目需要这个。
Is there is a way as nmap or some other tool to get the details of device connected to the router or how to identify a android phone connected to the network,even I have the IP I am not able to get this as an android.
有没有一种方法可以作为 nmap 或其他一些工具来获取连接到路由器的设备的详细信息,或者如何识别连接到网络的 android 手机,即使我有 IP,我也无法将其作为 android 获取。
Thanks
谢谢
采纳答案by Pedro Nascimento
You can use something like nmap
.
你可以使用类似的东西nmap
。
Example: nmap -O 192.168.0.0/24
例子: nmap -O 192.168.0.0/24
This will get you the list of devices on the same network (which is, if you're in a router, most probably everyone) and -O
will also do OS detection.
这将为您提供同一网络上的设备列表(也就是说,如果您在路由器中,则很可能是所有人),并且-O
还将进行操作系统检测。