From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SLEda-0002Kd-H5 for garchives@archives.gentoo.org; Fri, 20 Apr 2012 14:16:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA3D4E0856; Fri, 20 Apr 2012 14:16:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 81DBFE076C for ; Fri, 20 Apr 2012 14:14:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1A2A61B40D0 for ; Fri, 20 Apr 2012 14:14:40 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -2.554 X-Spam-Level: X-Spam-Status: No, score=-2.554 tagged_above=-999 required=5.5 tests=[AWL=-1.544, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NEIaRH8-kDHO for ; Fri, 20 Apr 2012 14:14:34 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4F2851B4015 for ; Fri, 20 Apr 2012 14:14:32 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SLEbS-0002cn-QK for gentoo-user@gentoo.org; Fri, 20 Apr 2012 16:14:26 +0200 Received: from dsl.comtrol.com ([64.122.56.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Apr 2012 16:14:26 +0200 Received: from grant.b.edwards by dsl.comtrol.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Apr 2012 16:14:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: How to find the MAC address Date: Fri, 20 Apr 2012 14:14:14 +0000 (UTC) Message-ID: References: <20120419214002.3484034f@weird.wonkology.org> <20120419220102.7e316dec@weird.wonkology.org> <1964012.4h1Mvnf0et@eve> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl.comtrol.com User-Agent: slrn/pre1.0.0-18 (Linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: 3054e756-51da-4d9c-b4b2-3379daf0e149 X-Archives-Hash: 7fa687fc40a01287236592acf92dca8f On 2012-04-20, Joost Roeleveld wrote: > On Thursday, April 19, 2012 04:12:35 PM Michael Mol wrote: >> On Thu, Apr 19, 2012 at 4:01 PM, Alex Schuster wrote: >> > Michael Mol writes: >> >> On Thu, Apr 19, 2012 at 3:40 PM, Alex Schuster >> >> >> >> wrote: >> >> > New output: >> >> > eth0: flags=4163 mtu 1500 >> >> > inet 192.168.2.42 netmask 255.255.255.0 broadcast >> >> > 192.168.2.255 inet6 fe80::be5f:f4ff:fe19:ad18 prefixlen 64 scopeid >> >> > 0x20 >> >> > >> >> > ether bc:5f:f4:19:ad:18 txqueuelen 1000 (Ethernet) >> >> >> >> There it is. >> > >> > Wow. Now I feel really stupid. Because I am. I have no idea why I have >> > overlooked this. >> > >> > Sorry for the noise! >> >> I didn't see it right away, either. I found it by noticing your MAC in >> your old output, and searched for a substring of it in your new >> output. >> >> Incidentally, you can derive it from your IPv6 LL address, but that's >> a bit of a roundabout way, and may not work if you've disabled IPv6. > > How do you derive it? > I don't see the mac-address in the inet6 address. $ ip addr show dev eth1 3: eth1: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1 inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1 inet 169.254.1.1/16 brd 169.254.255.255 scope global eth1 inet6 fe80::216:17ff:fe84:a7b3/64 scope link valid_lft forever preferred_lft forever fe80::0216:17ff:fe84:a7b3 0216 17 84 a7b3 xor 0200 00 00 0000 ------------------- 0016 17 84 a7b3 00:16:17:84:a7:b3 And that's the interfaces MAC address. See RFC2464 Sections 4 and 5 The tricky part is that you invert bit 1 of the first byte of the MAC address. -- Grant Edwards grant.b.edwards Yow! Someone in DAYTON, at Ohio is selling USED gmail.com CARPETS to a SERBO-CROATIAN