Someone correct me if I'm wrong, but a router has to have at least two MAC addresses, right? Maybe you are seeing the two different eth devices.<br><br><div><span class="gmail_quote">2008/4/13, Hai Yi <<a href="mailto:yihai2004@gmail.com">yihai2004@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you, Bryan:<br> <br> I think you are pretty much correct: it looks like this "arp" command<br> is equivalent to another command "ip neighbor", which pretty much<br> speaks for itself. However, I checked the MAC on my router, it appears<br>
to be 00:14:BF:D3:AE:2A, which is one digit greater in the last<br> section than the one from arp command. (00:14:BF:D3:AE:29 ) Why is<br> that?<br> <br> Thanks,<br> <br>Hai<br> <br><br> On Sun, Apr 13, 2008 at 2:15 PM, Bryan Richter <<a href="mailto:bryan.richter@gmail.com">bryan.richter@gmail.com</a>> wrote:<br>
> 2008/4/13, Hai Yi <<a href="mailto:yihai2004@gmail.com">yihai2004@gmail.com</a>>:<br> ><br> ><br> > > 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<br>
> Iface<br> > > . ether 00:14:BF:D3:AE:29 C<br> > eth0<br> > > Entries: 1 Skipped: 0 Found: 1<br> > ><br> > ><br> > > Thanks a lot!<br> > > Hai<br>
><br> ><br> > I think arp shows your adapter's neighbors, not the adapter itself. I only<br> > just read the man page for the first time, however, its results when I run<br> > 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<br> > 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<br> > about the device, itself. Also, the address it gives for my device matches<br> > the sticker that the manufacturer put on my laptop. :)<br>
><br> > -Bryan<br> <br>> _______________________________________________<br> > vox-tech mailing list<br> > <a href="mailto:vox-tech@lists.lugod.org">vox-tech@lists.lugod.org</a><br> > <a href="http://lists.lugod.org/mailman/listinfo/vox-tech">http://lists.lugod.org/mailman/listinfo/vox-tech</a><br>
><br> ><br> _______________________________________________<br> vox-tech mailing list<br> <a href="mailto:vox-tech@lists.lugod.org">vox-tech@lists.lugod.org</a><br> <a href="http://lists.lugod.org/mailman/listinfo/vox-tech">http://lists.lugod.org/mailman/listinfo/vox-tech</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Bryan Richter<br>