This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-change-mac-address-using-macchanger-on-kali-linux
Abaan
ifconfig wlan0 down
macchanger -m XX:XX:XX:XX:XX:XX wlan0
ifconfig wlan0 up
The 3 commands given below will change mac-address successfully!!!
Jon S
After the connection is lost I have to reconnect to the wifi losing the new MAC address. ifconfig wlan0 up does not reconnect. How do I retain the new MAC address?
Qasim Khalid
i’m having trouble with macchanger in kali linux 2017.3, when i type:
macchanger -r wlan0
it works and changes the mac successfully But.
when i tries to add a specific mac:
macchanger -m XX:XX:XX:XX:XX:XX wlan0
it shows error on third line like shown below:
[ERROR] Could not change MAC: interface up or insufficient permissions:
i have tried many things but not worked…
please help!
Abaan -> Qasim Khalid
ifconfig wlan0 down
macchanger -m XX:XX:XX:XX:XX:XX wlan0
ifconfig wlan0 up
The 3 commands given below will change mac-address successfully!!!
RJ Levesque Jr -> Qasim Khalid
Have to work as root and be sure eth0 is down first
Tim -> Qasim Khalid
Do ifconfig wlan0 down first, then attempt changing mac. After you’ve made changes, ifconfig wlan0 up.
Saurabh
Bring your network interface up and display your new MAC addres:
# ifconfig eth0 down
# macchanger -s eth0
There’s a slight mistake in the first command
#ifconfig eth0 down
It should not be down, it should be up. Like the command below.
#ifconfig eth0 up
Din Dayal Kumar
after changing the mac address my connection is lost what i will do
Abaan -> Din Dayal Kumar
If you are loosing your link to your access-point, check that is there any MAC-FILTERING in your access-point !!!..
Abaan -> Din Dayal Kumar
Are you loosing the connection between you and your access-point?
Muhann Sh -> Abaan
this Command will Fix it >>> service network-manager start
here is what i did, you can even switch networks with your mac hidden:
#!/bin/bash
ifconfig $1 down
macchanger -r $1
ifconfig $1 up
service network-manager stop
service network-manager start
hey i am trying to change my wlan0 mac address i applied every commands and all are working but if i do ifconfig wlan0 up and it recconects and mac address goes to default one after reconnect please help me and python also not able to change it please help…
I don’t have this script:
service network-manager start
┌──(root💀xavier)-[/home/xavier]
└─# service network-manager start
Failed to start network-manager.service: Unit network-manager.service not found.
apt-get network-manager
But still doesn’t work?
Hi Xavierartot,
The systemd
unit you are searching for is called NetworkManager
(mind the uppercase letters). So to start it you could issue the following:
# systemctl start NetworkManager.service