Question

Scenario: Main Linux Server is Connected to Local Switch Gateway. From Gateway to the network.

Now i can able to get the IP of the Remote Clients/Users who logged into the Server. Linux Command : *"who -u" (gives me the IP Address of the users IP Address).*

For getting the MAC Address of the same user. I tried the arp -a command, It gave the switch MAC-Address only. I cant able to get the Remote Clients/User MAC Address. Linux Command : "arp -a" (gives me the MAC Address of the Switch).

How to the MAC Address of the Remote Clients Machines ?

Note : My Client Machines can run on any OS (Windows/Linux/Solaris).

Was it helpful?

Solution

MAC addresses doesn't get routed, so the IP address would have to be of a host on your network. You will have to ping the IP address first and then use arp -a; like

ping <Remote_IP_Address>
arp -a <Remote_IP_Address>

See this related posts here

is-there-a-way-to-find-the-mac-address-of-a-remote-machine-i-have-connected-to-w

how-to-find-the-mac-address-of-a-remote-computer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top