Query regarding MAC address change

OS- Kali Linux

Commands used:
ifconfig wlan0 down
ifconfig wlan0 hw ether 11:22:33:44:55:66
ifconfig wlan0 up

When I tried the aforementioned commands yesterday, MAC address did change once or twice.

However, when I tried today, I either get “Cannot assign requested address” or the command is accepted and the Mac address doesn’t change and the same MAC address is displayed. The latter occurs most of the times.

Can someone please help me with this?

Thanks in advance.

Maybe try these commands:

  1. service network-manager stop
  2. ifconfig down
  3. macchanger -b -a
  4. ifconfig up
  5. service network-manager start

I have not used ifconfig to change mac address so don’t know why you are getting that error. Maybe try stopping the network-manager and restarting it.

1 Like