局域网 mac 扫描

@echo off
for /L %%i in (1,1,255) do (
echo %%i
start ping 192.168.41.%%i
)
@echo on
rem arp -a>>%temp%log.log
rem type %temp%log.log|findstr "192.168.X"
timeout /T 30
arp -a > a.txt
type a.txt

原文地址:https://www.cnblogs.com/chunk998/p/12154814.html