列出网络上活动主机

mac2022-06-30  100

1、

for ip in 192.168.0.{1..255} do ping $ip -c 2>&1 /dev/null   if [ $? -ne 0]   then   echo "$ip is alive"   fi done

 

2、fping -a 192.168.0.1/24 -g 2>/dev/null

转载于:https://www.cnblogs.com/fanren224/p/8489546.html

相关资源:发现网络中的活动主机
最新回复(0)