[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting the MAC address from an ip



On Friday 24 June 2005 13:52, LeVA wrote:
> Hi!
>
> How can I get a machines mac address, if I only know it's ip?

In general you can't, but if it's on the same physical network you can 
ping it and look in your system's ARP cache:

$ ping -c  1 IPADDR
$ /usr/sbin/arp -a IPADDR

-- 
Ray Miller, Systems Development & Support Section Manager
Computing Services, University of Oxford

Attachment: pgp8sbScKC2io.pgp
Description: PGP signature


Reply to: