First, change everything back to default so that everything is in working order.
Next, run the following commands to install macchanger
; macchanger
is a command line tool developed for the purpose of changing your mac address:
sudo apt-get update
sudo apt-get install macchanger
You may be asked if you want to run automatically. You can choose yes or no.
For testing purposes, I have selected no, however, you may find this option useful. There is no guarantee the real MAC address will not be leaked. This option can be changed or set by editing the file /etc/default/macchanger
, setting to ENABLE_ON_POST_UP_DOWN=true
or ENABLE_ON_POST_UP_DOWN=false
. Again, for testing purposes here, I have this set to ENABLE_ON_POST_UP_DOWN=false
.
Usage:
To set the MAC address of wlan0 to 00:11:22:33:44:55, run the following commands:
sudo ifconfig wlan0 down
sudo macchanger --mac 00:11:22:33:44:55 wlan0
sudo service network-manager restart
Then, to show the current MAC address:
macchanger -s wlan0
For a list of options:
macchanger -h
Also, you may want to look into the "pretend to be a burned in address" -bia
option.
Finally, I'm not sure how your IPV6 address will be impacted so that may be something you might want to pay attention to.
See also:
man macchanger
the GUI version: macchanger-gtk
and:
anonscm.debian.org/cgit/collab-maint/macchanger.git
github.com/alobbs/macchanger
www.gnu.org/software/macchanger
sudo ifconfig wlan0 hw ether 00:11:22:33:44:55