Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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 at 20:31
    
You are correct. Sudo is for when you edit it next. –  Michael McGarrah Apr 21 at 22:37

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.