Ethernet mac address resets when cable unplugged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I'm not exactly sure if this is a network-manager bug, but if not perhaps you could point me in the right direction (or tell me how to find out what the right direction is)..
A friend running 12.10 and myself running 12.04.1 both experienced the same problem.
Using the following series of commands to change the ethernet MAC address works fine under some specific circumstances:
ifconfig eth0 down
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up
If there is a wired connection defined in the network-manager gui (click the wireless signal-> Edit Connections...) and there is a Cloned Mac Address defined in there, the MAC address of eth0 WILL REVERT to it's original (hardware) MAC address upon connection of an ethernet cable. This is very strange and frustrating. In order for the above MAC address changes to take effect, there needs to be nothing filled in with the GUI.
Second issue (I guess it is related) is that if everything is working correctly, the MAC address WILL REVERT to it's original (hardware) MAC address upon DISconncetion of the ethernet cable.
Perhaps I am doing something horribly, horribly wrong here, but it's frustrating and hours of searching the forums have not given me any indication of the correct place/time to change MAC address. If network-manager does not want to respect the changes I have requested, then it should at least provide a functioning, documented alternative method in order to make the same change.
What I would expect:
Changing the MAC address of eth0 using the network-manager gui will actually change the MAC address everytime the interface is brought up.
Current workaround:
In /etc/rc.local, run the above commands for changing hardware address
In /etc/network/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: network-manager 0.9.4.0-0ubuntu4.2
ProcVersionSign
Uname: Linux 3.2.0-29-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
Date: Tue Feb 5 08:15:48 2013
IfupdownConfig:
auto lo
iface lo inet loopback
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
IpRoute:
default via 192.168.1.254 dev wlan0 proto static
169.254.0.0/16 dev wlan0 scope link metric 1000
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.65 metric 2
MarkForUpload: True
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
WimaxEnabled=true
ProcEnviron:
LANGUAGE=en_CA:en
TERM=xterm-
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
nmcli-con:
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT READONLY DBUS-PATH
BattlecruiserO
magiclab f1b348f9-
ubcsecure a141ff8b-
Wired connection 1 e54ce990-
nmcli-dev:
DEVICE TYPE STATE DBUS-PATH
wlan0 802-11-wireless connected /org/freedeskto
eth0 802-3-ethernet unavailable /org/freedeskto
nmcli-nm:
RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running 0.9.4.0 connected enabled enabled enabled enabled enabled
Status changed to 'Confirmed' because the bug affects multiple users.