Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There are many ways to do this.. you need to give a lot more details about what kind of access you have to that machine etc... if you have no access to it, you can not get it's mac as it serves no purpose outside of the local network, so would not be included in any data as a side effet or anything.
There are many ways to do this.. you need to give a lot more details about what kind of access you have to that machine etc... if you have no access to it, you can not get it's mac as it serves no purpose outside of the local network, so would not be included in any data as a side effet or anything.
I mean remote computer on the same LAN .... .... and can you aslo tell how to get the MAC of a Linux box from a Windows box .... I am able to get the IP by pinging the linux box .. but then using arp -a <IP> i cant get mac because there is a router connection the two networks... and i get the mac of the router
right well as above, you can't. not outright... you have no reason to need it, so no standard protocol exists to do this. log into the box, run ifconfig, and grep the mac address out of it.
right well as above, you can't. not outright... you have no reason to need it, so no standard protocol exists to do this. log into the box, run ifconfig, and grep the mac address out of it.
Isn't it possible to accces the table of the router so that I can get the mac for a perticular ip . Or there is no way
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Quote:
Originally Posted by nickraj
Isn't it possible to accces the table of the router so that I can get the mac for a perticular ip . Or there is no way
Not unless you have access to the router. MAC addresses are layer2 addresses and only useful between machines that are physically connected. When an ethernet frame is forwarded to the next device in the route, the MAC address of the sender is removed and replaced with the MAC address of the router that forwards the packet to the next router or device. You can only see MAC addresses of machines in your own subnet (and then only if it's not forwarded by a bridge or other devices that proxies ARP).
Not unless you have access to the router. MAC addresses are layer2 addresses and only useful between machines that are physically connected. When an ethernet frame is forwarded to the next device in the route, the MAC address of the sender is removed and replaced with the MAC address of the router that forwards the packet to the next router or device. You can only see MAC addresses of machines in your own subnet (and then only if it's not forwarded by a bridge or other devices that proxies ARP).
Thanks , but i am still curious to find any method to do that.....the subnet is connected to a router , and that is connected to another subnet ...router knows the mac of receiver??then why cant we get mac ???there must be some way ...
if ur on the same subnet the easiest way is to ping the ip address of the device then check the arp table. check man arp cuz im not sure what they exact switch is.
edit: oops, didn't realize there was a router in between the 2 nodes. when the packet is routed, the mac address is dropped since it's layer 2. unless u have access to the router and its arp table, ur SOL
You could try calling the person that uses the remote system you are interested in, to look up the MAC address for you. I know this isn't very high tech, but if it works it works,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.