如何获取本地网络中所有有效 IP 地址的列表? [英] How to get a list of all valid IP addresses in a local network?
本文介绍了如何获取本地网络中所有有效 IP 地址的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法获取本地网络中所有有效 IP 地址的列表?
Is there a way to get a list of all valid IP addresses in a local network?
我的意思是每个用户在网络中使用的所有 IP 地址.
I mean all IP addresses that each user is using in the network.
推荐答案
Install nmap,
sudo apt-get install nmap
然后
nmap -sP 192.168.1.*
或更常见
nmap -sn 192.168.1.0/24
将扫描整个 .1 到 .254 范围
will scan the entire .1 to .254 range
这会在整个子网中执行简单的 ping 扫描,以查看哪些主机在线.
This does a simple ping scan in the entire subnet to see which hosts are online.
这篇关于如何获取本地网络中所有有效 IP 地址的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文