On 2012-04-20, Joost Roeleveld <jo...@antarean.org> wrote: > On Thursday, April 19, 2012 04:12:35 PM Michael Mol wrote: >> On Thu, Apr 19, 2012 at 4:01 PM, Alex Schuster <wo...@wonkology.org> wrote: >> > Michael Mol writes: >> >> On Thu, Apr 19, 2012 at 3:40 PM, Alex Schuster <wo...@wonkology.org> >> >> >> >> wrote: >> >> > New output: >> >> > eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> 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<link> >> >> > >> >> > 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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