2008/4/13, Hai Yi <<a href="mailto:yihai2004@gmail.com">yihai2004@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br> <br> I thought I can get my ether card's MAC address by using either<br> "ifconfig eth0" command or "arp -v" command, but these commands<br> returned different MAC address(00:16:E6:5C:DA:B8 vs<br>
00:14:BF:D3:AE:29). Did I miss something here?<br> <br> I am using Ubuntu and the following are the results:<br> <br> <br> hai@zodiac:~$ ifconfig eth0<br> eth0 Link encap:Ethernet HWaddr 00:16:E6:5C:DA:B8<br> inet addr:<a href="http://192.168.1.103">192.168.1.103</a> Bcast:<a href="http://192.168.1.255">192.168.1.255</a> Mask:<a href="http://255.255.255.0">255.255.255.0</a><br>
inet6 addr: fe80::216:e6ff:fe5c:dab8/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:27120 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:26884 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:1000<br> RX bytes:6831509 (6.5 MiB) TX bytes:3820509 (3.6 MiB)<br> Interrupt:16<br> <br> hai@zodiac:~$ arp -v<br> Address HWtype HWaddress Flags Mask Iface<br>
. ether 00:14:BF:D3:AE:29 C eth0<br> Entries: 1 Skipped: 0 Found: 1<br> <br> <br> Thanks a lot!<br> Hai</blockquote><div><br><br> I think arp shows your adapter's neighbors, not the adapter itself. I
only just read the man page for the first time, however, its results
when I run it seem to confirm that:<br>
<br>
<a href="http://192.168.1.1">192.168.1.1</a> ether 00:18:4D:25:82:0D C ath0<br>
<br>
My adapter's neighbor is, indeed, <a href="http://192.168.1.1">192.168.1.1</a> (my router).<br>
<br>
ifconfig, on the other hand, seems like a much better place to find
info about the device, itself. Also, the address it gives for my device
matches the sticker that the manufacturer put on my laptop. :)<br>
<br>
-Bryan</div></div>