GNOME Bugzilla – Bug 630151
add any way to use device with non-default MAC address ("spoofing")
Last modified: 2010-09-20 17:11:36 UTC
Use case: I have a USB ethernet adapter that I plug into several different hosts. Each host should get its own, "static" IP address assigned via DHCP. The best way (read: the one compatible with all DHCP servers) to achieve this is to use a different (locally administered) MAC address on each host. Currently there's no way to make this work with NetworkManager. I can change the MAC address with a script called by udev, but it introduces a race condition with NetworkManager: - if the script starts without delay, changing the MAC address will conflict with NM setting the device up => MAC address unchanged - if the script runs delayed and I don't MAC-bind the connection, changing the MAC address will conflict with NM setting the device up => MAC address unchanged - if the script runs delayed and I MAC-bind the connection, the MAC address gets changed after NM has inspected the device => connection not brought up
MAC spoofing was added to NM in late June, and will be part of the 0.8.2 release. It also works better if your device's kernel driver supports the "permanent MAC" ethtool option (which reports the original MAC from the device's NVRAM even if the device's current MAC is changed), but it should also work without that driver support. *** This bug has been marked as a duplicate of bug 553771 ***
Sorry for the dupe, I didn't search for closed bugs. Nice to hear it's already implemented. Thanks & keep rolling!