Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use 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 the MAC address 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 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 without 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 the GUI network manager Ubuntu provides.

share|improve this question

migrated from stackoverflow.com May 31 '12 at 21:42

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 1 down vote accepted

I want my mac address to however be the same

Try: right-click on network manager applet, "Edit Connections ...", choose (or create) a connection, "Edit", type a value into "MAC Address" box. These instructions are from 10.04.

Lastly I would like to know how to connect to a wifi network through the terminal

Look at /etc/network/interfaces and the commands ifdown and ifup.

share|improve this answer

Just wondering if anyone had a fix for making the Spoofed MAC address more permanent. Script maybe ?

It works fine i've added a startup script, However if i get dissconnected i have to manually set MAC again.

share|improve this answer
    
This isn't a question, it's a comment. Please add this to the question. –  slm Jan 3 '13 at 6:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.