need to view MAC addresses of connected device

jackl79

macrumors newbie
Original poster
Mar 8, 2005
20
0
Any idea how to view the mac address of connected devices.......

my mac is set to share its ethernet connection via airport but who is connected?
 

Bear

macrumors G3
Jul 23, 2002
8,089
4
Sol III - Terra
In terminal type "arp -a" it will list all the MAC addresses that your computer knows about - which implies things that your computer is currently talking to since the arp table entries expire.
 

jackl79

macrumors newbie
Original poster
Mar 8, 2005
20
0
thats great i found it however it isnt a full mac address

eg xx:xx:xx:xx:xx:xx

what do i have to do to if its 0:8:3D:xx:xx:xx is it 00:00:3D etc??

Have fixed it :- Just add a 0 at the start of each of the : marks :)

Thanks again!
 

Bear

macrumors G3
Jul 23, 2002
8,089
4
Sol III - Terra
jackl79 said:
thats great i found it however it isnt a full mac address

eg xx:xx:xx:xx:xx:xx

what do i have to do to if its 0:8:3D:xx:xx:xx is it 00:00:3D etc??

Have fixed it :- Just add a 0 at the start of each of the : marks :)

Thanks again!
Yup, some programs drop printing the first digit in each octet if it's a zero.
 

daveL

macrumors 68020
Jun 18, 2003
2,425
0
Montana
Just to add to bear's info, arp maintains a cache of ip<->mac addresses. If a node on the local network hasn't been active lately, while others have, it may drop out of the cache. If you want to see every node that has a link up, you can 'ping' your network's broadcast address, then do the 'arp -a' command. This should give you ever node.
 

yellow

Moderator emeritus
Oct 21, 2003
16,033
1
Portland, OR
And to daveL and Bear's posts, I would also like to add that your arp cache won't contain any entries for machines beyond your subnet.
At least it shouldn't. Routers aren't supposed to pass that kind of info to computers, only to each other.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.