Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-15-2003, 11:39 AM
|
#1
|
|
Member
Registered: Nov 2000
Location: england
Distribution: latest Mandrake
Posts: 368
Rep:
|
Find out a remote mac address
hello,
this is probably a stupid question, but how can i find out a mac address of another host on my network based on its ip address?
thanks
antken
|
|
|
|
04-15-2003, 12:02 PM
|
#2
|
|
LQ Newbie
Registered: Apr 2003
Posts: 21
Rep:
|
MAC addresses don't route, so the IP address would have to be of a host on your network. You may have to ping the IP first.
/sbin/arp -a 192.168.1.1
|
|
|
|
10-06-2008, 08:27 PM
|
#3
|
|
LQ Newbie
Registered: Dec 2006
Location: Bay Area, CA
Distribution: openSUSE 11.1
Posts: 14
Rep:
|
Quote:
Originally Posted by david_reno
MAC addresses don't route, so the IP address would have to be of a host on your network. You may have to ping the IP first.
/sbin/arp -a 192.168.1.1
|
I know this is years later, but thank you, exactly what I was looking for. 
|
|
|
|
03-03-2009, 12:36 AM
|
#4
|
|
LQ Newbie
Registered: Nov 2008
Posts: 1
Rep:
|
No i need to get code in c that gives the mac address of the given ip of my lan without getting it from arp cache.
|
|
|
|
03-03-2009, 11:20 AM
|
#5
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
What's with the bizarro replies to other folks' (old) threads lately?
@manihiguy: Start a new thread. They obviously weren't replying to you, so why would you start things off with "No I need to..."
|
|
|
|
05-05-2009, 03:17 PM
|
#6
|
|
LQ Newbie
Registered: May 2009
Posts: 8
Rep:
|
Note to self: "Don't violate any forum rules."
Last edited by The Lightning Stalker; 05-05-2009 at 03:19 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:07 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|