Windows 启动命令窗口:输入 for /L %i IN (1,1,254) DO ping -w 2 -n 1 192.168.28.%i
然后:输入:ARP -a
—————————————-
接口: 192.168.28.32 — 0x7
Internet 地址 物理地址 类型
192.168.28.1 88-c3-97-ed-8f-3d 动态
192.168.28.52 a2-c5-f2-01-8b-4e 动态
192.168.28.54 cc-e0-da-55-1c-c4 动态
192.168.28.135 8c-2d-aa-30-36-95 动态
192.168.28.188 dc-a6-32-19-c7-af 动态
192.168.28.189 34-b9-8d-dd-53-d2 动态
192.168.28.242 a8-20-66-1c-d6-c1 动态
192.168.28.255 ff-ff-ff-ff-ff-ff 静态
224.0.0.22 01-00-5e-00-00-16 静态
224.0.0.251 01-00-5e-00-00-fb 静态
224.0.0.252 01-00-5e-00-00-fc 静态
239.255.255.250 01-00-5e-7f-ff-fa 静态
255.255.255.255 ff-ff-ff-ff-ff-ff 静态
可把搜索到的IP写入文件(.bat文件中%i 必须写成%%i) @echo off for /L %%i IN (1,1,254) DO ping -w 2 -n 1 172.16.10.%%i arp -a>d:\arp.txt pause