简体   繁体   中英

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:

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).

Can someone point me in the right direction?

sudo arp-scan -l in my Ubuntu machine did the job.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM