Ubuntu – wlan and macchanger

conkystartupwireless

I was wondering about how to write a script for changing my default MAC address before enabling networking. It happens often, that the MAC address changes to default.

I would like to show the MAC address in conky (or any other graphical desktop interface). This script should also change the MAC address automatically if for any reason the default was restored.

Best Answer

NetworkManager itself can change a network interface MAC address and it will not be changed back to the default one while the connection is established.

Edit the network connection (NetworkManager indicator -> Edit connections -> Wireless tab -> Select a connection -> "Edit" button). In the "Wireless" tab you'll find a "Cloned MAC address" textbox. Type in the new MAC address it should use when the connection is established.

enter image description here

Related Question