Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I need to locate the IPs of devices by their mac address on a Windows system, I normally use Advanced IP Scanner (from radmin.com) to scan the network, then I use arp -a to list the mac addresses.

Is it possible to use nmap to perform the same function in Linux and possibly in Windows? Can nmap to the scanning and produce both IPs and MAC addresses?

I have tried arp -a in Linux but it doesn't seem to work as quickly as in Windows or appears to require some use input.

/vfclists

share|improve this question
    
nmap -sP 192.168.1.1/24 –  Iraklis Jun 4 '10 at 7:49

2 Answers 2

up vote 2 down vote accepted

You can use the Ping scans, which start with the P-flag. However, I personally use -sL for this job.

http://nmap.org/book/man-host-discovery.html

share|improve this answer
1  
+1 I use -sP as well. But attention, to be able to get mac addresses you have to be on the same lan (no routers in between). –  Pier Jun 4 '10 at 7:51
    
I have tested with the -sP option and it is exactly what I am looking for, thanks to Pier and Iraklis. It is for scanning for items getting their IPs via DHCP or static in the local network. –  vfclists Jun 4 '10 at 8:34

Using nmap a lot of info can be regarded..

nmap -A -v -v 192.1680.0/24 gives a lot of information, even SO in some cases

nmap -sP 192.168.1.0/24 gives the MAC and IP adresses. Very Usefull too

sudo nmap -PU 192.168.1.0/24 explains every ip

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.