Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to look up a MAC address on my ethernet and find the IP of that machine. What command should I issue using which app?

edit: i've tried: fping -g 195.88.88.0/24 | arp -a | grep 4C:12:10:11:35:B4 but that does not work (i checked with my own MAC whether it can find or not)

share|improve this question

3 Answers 3

up vote 5 down vote accepted

Download and install arp-scan - it will return all MAC addresses it can find and their reported IP addresses. Many distros have an arp-scan package in their repositories.

For example, to scan network 192.168.1.0:

arp-scan 192.168.1.0/24
share|improve this answer
    
+1, good stuff! –  Matthieu Cartier Jan 22 '11 at 16:38
    
Finally, a way to find out my wireless AP's address :) –  Bart van Heukelom Jun 12 '12 at 22:21

As far as I am aware, nmap can't do this. You may be able to do this by looking at the ARP transactions with tcpdump, or on Windows, try using arp -a (but only if you've previously communicated with it).

share|improve this answer

The MAC address may not have an associated IP address, (or its IP address might not be compatible with your hosts network/mask). To get all hosts that can respond, to answer a ping, use 255.255.255.255.

As others have suggested, use tcpdump -env to look for ARP and MAC addresses. If you suspect there might be an IP misconfiguration, you can set your ip/netmask to some large netmask (195.88.88. netmask 128.0.0.0, which will likely take you offline.

Ping 255.255.255.255 and see if you get an address resolution. (This will cover networks from 128 - 255; set your ip to 10.10.10.10/128.0.0.0 to get the other half of the possible IPv4 addresses.

share|improve this answer
    
please read superuser.com/faq#signatures . You should not sign your posts. –  Simon Apr 11 '13 at 6:38

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.