how to get mac address

Smoot Carl-Mitchell smoot at tic.com
Wed Jan 6 21:48:57 UTC 2010


On Wed, 2010-01-06 at 13:12 -0800, Dave Stevens wrote:
> Quoting n3mo <n3mo.wolf at gmail.com>:
> 
> > if it's a wireless network you can try airodump and sniff to it :) It tells
> > you mac adresses of both - client and router.
> >
> > 2010/1/6 Brian McKee <brian.mckee at gmail.com>
> >
> >> On Wed, Jan 6, 2010 at 2:23 PM, Vadkan Jozsef <jozsi.avadkan at gmail.com>
> >> wrote:
> >> > How can I get the MAC address of a computer, if it isn't in the same
> >> > network segment?
> >> > e.g.: can I get the MAC from a normal, public IP?
> 
> I don't think you can from the IP but if you have ssh access (or can  
> get it) then the usual method would be to first get a shell (bash)  
> prompt on the computer of interest then "sudo /sbin/ifconfig eth0"
> 
> Also, about the terminology, computers don't have mac addresses,  
> network interface circuits do, lots of computers have more than one.  
> In the example I gave I assume you want the usual wired interface.

You can also do "arp -a" which gives you the mapping from IP to MAC
addresses on your local LAN.

-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list