Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

I'd like to get NetBIOS name, IP and MAC addresses for every host on the LAN, preferably not having to walk to every single PC and take note of the stuff myself.

How to do that with Windows Script Host/PowerShell/whatever?

like image 604
agnul Avatar asked Nov 30 '22 13:11

agnul


2 Answers

As Daren Thomas said, use nmap.

 nmap -sP 192.168.1.1/24

to scan the network 192.168.1.*

 nmap -O 192.168.1.1/24

to get the operating system of the user. For more information, read the manpage

 man nmap

regards

like image 156
mana Avatar answered Dec 04 '22 06:12

mana


arp -a

That gets everything the current machine knows about on the network.

(I'm putting this up there as a second option, since nmap isn't universally installed).

like image 31
Matthew Schinckel Avatar answered Dec 04 '22 05:12

Matthew Schinckel