LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-18-2010, 12:38 AM   #1
aliabbass
Member
 
Registered: Jun 2008
Posts: 57

Rep: Reputation: 0
Question 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
 
Old 12-18-2010, 02:59 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

You can use arp:
Code:
arp -a x.x.x.x
Regards
 
Old 12-21-2010, 04:48 AM   #3
aliabbass
Member
 
Registered: Jun 2008
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,

You can use arp:
Code:
arp -a x.x.x.x
Regards
thanks
 
Old 12-21-2010, 04:53 AM   #4
aliabbass
Member
 
Registered: Jun 2008
Posts: 57

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aliabbass View Post
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
 
Old 12-21-2010, 05:43 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
The ARP cache is short lived; you may be able to refresh it by pinging the IP address you want the MAC for.
 
Old 12-21-2010, 04:33 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,105

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mac address of local machine sadafwaqas Linux - Networking 3 05-19-2006 04:39 AM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
finding my mac address sethgeekx86 Linux - General 5 07-14-2004 11:17 AM
Finding Local network IP address. zaphanol Linux - Networking 9 07-25-2003 11:41 AM


All times are GMT -5. The time now is 09:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration