使用nmap扫描局域网mac地址的例子:
nmap -sP -PI -PT -oN ipandmaclist.txt 192.168.1.0/24在文件ipandmaclist.txt文件中就可以查看ip对应的mac地址了。