[英]Get IP, MAC and hostname for all connected computers in my network
I remember doing it a few months ago, but I just forgot the command I used.我记得几个月前做过,但我只是忘记了我使用的命令。 It was a one liner that produced a table output will all computers in the list:
IP MAC HOST
For example:这是一个单一的班轮产生了一个表 output 列表中的所有计算机:
IP MAC HOST
例如:
xx.xx.46.118 ab:cd:12:34:aa:aa Intel Corporate (DUP: 2)
In most sites I found arp -a
but this output is much more limited (no hostname and it does not contain all addresses).在大多数站点中,我找到了
arp -a
但这个 output 的限制要多得多(没有主机名,它不包含所有地址)。
Can someone point me in the right direction?有人能指出我正确的方向吗?
sudo arp-scan -l
in my Ubuntu machine did the job. sudo arp-scan -l
在我的 Ubuntu 机器上完成了这项工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.