Why does my Mac address reset after reconnecting?

Posted by Mr.Student on Super User See other posts from Super User or by Mr.Student
Published on 2012-05-31T21:15:54Z Indexed on 2012/05/31 22:44 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

I have ubuntu 12. I'm changing my mac address with ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx which works. However when I restart my connection my computer resets my mac to my original mac address. I'm guessing that this happens because something calls...

ifconfig wlan0 down
... do something before connecting
ifconfig wlan0 up
... connect to designated access point

I want my mac address to however be the same no matter how many times I disconnect and reconnect, whether to another network or the same one. Also it would be nice to turn off the auto-connect feature for my network-manager with out having to edit each individual connection. Lastly I would like to know how to connect to a wifi network through the terminal and not via gui network manager ubuntu provides.

© Super User or respective owner

Related posts about linux

Related posts about bash