This bug forwarded from ubuntu bug track, for more details see: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/165052 Distribution: ubuntu Hardware Environment: PCI devices 0x10ec:0x8168 0x10ec:0x8167 Problem Description: Normally changing MAC address will work till next reboot or poweroff - after it will be restored default manufacture MAC, but on this environment it will be changed permanently. Steps to reproduce: 1. start PC and ifconfig eth0: eth0 Link encap:Ethernet HWaddr 00:1A:4D:##:##:## 2.set new mac: ip l set eth0 addr 04:44:44:44:44:04 3. reboot/poweroff/unplug PC , start again and ifconfig: eth0 Link encap:Ethernet HWaddr 04:44:44:44:44:04 especially painful it with XEN which setting up bridge with default mac FE:FF:FF:FF:FF:FF
hm. Perhaps userspace is remembering the MAC address somewhere then reestablishing it after boot?
No. we have udev script to assign MAC to device name [eth0,eth1,..]. At the same time this issue know only with r8169. Other devices like e1000 working just fine.
The discussion about this problem on lkml: http://marc.info/?t=116216178600002&r=1&w=2 Is there any update on this bug? Thanks.
Created attachment 18014 [details] r8169: read MAC address from EEPROM on init It is probably fixed by 2.6.27-rc and the applied patch (courtesy of Ivan Vecera). -- Ueimor