LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   finding mac address of a machine on local network (https://www.linuxquestions.org/questions/linux-networking-3/finding-mac-address-of-a-machine-on-local-network-851006/)

aliabbass 12-18-2010 12:38 AM

finding mac address of a machine on local network
 
i want to know mac address of a particular ip but the problem is that i am unable to ping that ip but that ip is being used by someone in my local network that i know from my proxy logs. i want to know the mac address of that ip, any one knows

bathory 12-18-2010 02:59 AM

Hi,

You can use arp:
Code:

arp -a x.x.x.x
Regards

aliabbass 12-21-2010 04:48 AM

Quote:

Originally Posted by bathory (Post 4195622)
Hi,

You can use arp:
Code:

arp -a x.x.x.x
Regards

thanks

aliabbass 12-21-2010 04:53 AM

Quote:

Originally Posted by aliabbass (Post 4198701)
thanks

when i executed the command for the first time i got this reply
? (200.200.200.199) at <incomplete> on eth2
when i executed for the second time i got this reply
arp: in 38 entries no match found.
but i didn't find the reply i was looking for

catkin 12-21-2010 05:43 AM

The ARP cache is short lived; you may be able to refresh it by pinging the IP address you want the MAC for.

jefro 12-21-2010 04:33 PM

If you can't ping it you would have to send some data against it that it would return. A telnet ssh or http. If none then you need to wireshark it. As above arp is very short lived.


All times are GMT -5. The time now is 09:27 PM.