Hello there -
I wrote up a script to do an automatic "phone home" from my laptop, in case it was stolen. It runs in the background, pinging a remote server every couple minutes with info. (The server-side script logs the IP as well).
One of the pieces of info sent on the URL is the MAC address of the wireless router connected to (if any).
I'm curious about the different MAC addresses I see for the wireless router... I'm obviously no networking expert. :-)
[Note: the center four hex pairs have been changed to 11:22:33:44 in these examples; the others are accurate.]
Code:
$ iwgetid -a eth1
eth1 Access Point/Cell: 02:11:22:33:44:55
[same MAC that shows up in iwlist eth1 scan...]
But:
Code:
$ arp
Address HWtype HWaddress Flags Mask Iface
192.168.1.1 ether 00:11:22:33:44:52 C eth1
...is either of these MAC addresses more or less "accurate"?
In the config screen for the router itself (running dd_wrt), it shows:
Code:
LAN MAC
00:11:22:33:44:52
WAN MAC
00:11:22:33:44:54
Wireless MAC
00:11:22:33:44:54
...which agree more with arp.
I'm happy to chalk this up to "weird interface between dd_wrt and the router and arp and iwgetid", i'd just like to know that i'm not making any dumb mistakes (especially because the windows version i made is using the windows arp command to extract the same info...)
Thanks!
-C