modifying MAC address

Eline Vanrykel elinetje2 at hotmail.com
Mon Nov 10 17:52:04 UTC 2014


Hi,

I’m using an android emulator and would like to change it’s MAC 
address. Busybox is installed and I try to modify it as follows:
	adb shell
	busybox ip link set dev eth0 addr 00:01:02:03:04:05
but this always results in the following error message: 
	ip: SIOCSIFHWADDR: Device or resource busy
Okay, let’s solve this by putting the interface down before modification
	busybox iplink set eth0 down 
However, my terminal gets stuck after this command. Killing the process 
and starting a new shell is also impossible, the shell just doesn’t react 
anymore. The only way to get access to the shell again is to restart the 
emulator altogether.

Does anyone have an idea how to solve this?

PS: I know that there are several different commands: ip link (with space), 
iplink (without space) or ifconfig to do the same thing. They all result in 
the same problem however.

Thanks.


More information about the busybox mailing list