MAC address of remote linux machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aravindm
    New Member
    • Jul 2013
    • 1

    MAC address of remote linux machine

    Hi,

    I am trying to find the MAC address of a remote linux machine that is not present in my LAN. Is there any tool that I can use to find it. I read in one of the posts that GetMAC can be used. Let me know how to achieve this.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    The easiest way would be log in and run ifconfig to show the MAC. If you can't login to the system you would need access to the switch/subnet it's connected to. If you can't get that, I'd suggest revisiting why you want the MAC address.

    Comment

    • devnull
      New Member
      • Oct 2013
      • 1

      #3
      ping the machine, and then dump your arp cache with "arp".

      eg

      Code:
      simon@lappy:~$ ping BelkinPrintServer.scottlan
      PING BelkinPrintServer.scottlan (192.168.1.13) 56(84) bytes of data.
      64 bytes from BelkinPrintServer.scottlan (192.168.1.13): icmp_req=1 ttl=64 time=8.86 ms
      64 bytes from BelkinPrintServer.scottlan (192.168.1.13): icmp_req=2 ttl=64 time=9.74 ms
      ^C
      --- BelkinPrintServer.scottlan ping statistics ---
      2 packets transmitted, 2 received, 0% packet loss, time 1001ms
      rtt min/avg/max/mdev = 8.864/9.304/9.744/0.440 ms
      simon@lappy:~$ arp
      Address                  HWtype  HWaddress           Flags Mask            Iface
      BelkinPrintServer.scott  ether   00:11:50:0c:28:a5   C                     wlan0
      gateway.scottlan         ether   00:04:ed:96:cf:e5   C                     wlan0
      simon@lappy:~$

      Comment

      Working...