Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I ran:

sudo macchanger -r wlan0
sudo macchanger -m xx:xx:xx:xx:xx:xx wlan0

Both of these commands produce a change as confirmed with both ifconfig wlan0 and macchanger -s wlan0.

But after I connect to a router--or after a few minutes--the MAC address always reverts back to default.

Anybody know how to get macchanger working?

share|improve this question

I don't have enough points to comment yet or I'd post this as a comment.

Could you have something locking you in you udev rules?

 sudo less /etc/udev/rules.d/70-persistent-net.rules

This caches the MAC address and interface name for you system. I've been burned by it before when changing out network cards then swapping them back.

Check if the MAC in the rules file is the one you are getting reset back too.

share|improve this answer
Hm, sudo shouldn't be needed to view a file. – Seth Apr 16 '14 at 20:31
You are correct. Sudo is for when you edit it next. – Michael McGarrah Apr 21 '14 at 22:37

Your Answer


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.