[Asterisk-Users] finding mac addresses

James Harper james.harper at bendigoit.com.au
Mon Jun 19 17:26:30 MST 2006


> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of mojowrkn
> Sent: Tuesday, 20 June 2006 03:21
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] finding mac addresses
> 
> All, Can anyone point me to the best way to find the mac address of a
> phone on my system?? I can get the ip's just fine but dont seem to be
able
> to pull mac addresses from any network tools.
> 

For IPv4:
ip neigh show dev eth0
or:
arp -ani eth0

For IPv6:
ip -6 neigh show dev eth0

replace eth0 with the network interface name if it's not eth0. If it
doesn't show up, ping it first to populate the arp table.

Out of curiosity, for what purpose do you need the MAC address?

James



More information about the asterisk-users mailing list