on GNU Linux (Debian 12) this feature needs to be manually installed:

hostnamectl; # tested on
Operating System: Debian GNU/Linux 12 (bookworm)  
          Kernel: Linux 6.1.0-18-amd64
    Architecture: x86-64

su - root
apt install macchanger

it will ask:

change the mac of interface enp4s0:

macchanger -r enp4s0

it SHOULD now change the mac with ervery boot 🙂

PS: what this ALSO means the IP of the PC will also CHANGE with every boot, so if the user needs fixed ips set this up properly for example in network manager, systemd or what have crazy complicated software there is.

possible problems:

macchanger -r wlp3s0
Current MAC: 28:b2:xx:xx:xx:xx (Intel Corporate)
Permanent MAC: 28:b2:xx:xx:xx:xx (Intel Corporate)
[ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy

# workaround
ifconfig wlp3s0 down
macchanger -r wlp3s0
ifconfig wlp3s0 up

# result might look like this
Current MAC:   f4:c8:8a:aa:aa:aa (unknown)
Permanent MAC: f4:c8:8a:aa:aa:aa (unknown)
New MAC:       42:7d:d1:bb:bb:bb (unknown)  

links: how “permanent” are macs?

  • “Yes, the MAC address is permanent! MAC addresses are assigned to all network adapters at the moment of their manufacture, and they are unique for each networking device.”
    • “The MAC address of a network device is written by its manufacturer directly in that device’s hardware read-only memory, and cannot be removed from there.” (src)
    • “And No, the MAC address is not permanent!”
      • Although the MAC address cannot be erased from a networking device” (Permanent MAC) “it can be spoofed.”
      • (temporarily) “replace the default MAC address easily”
      • “However, because the original MAC address cannot be removed, you can always reset your networking device to use the original MAC address.” (src)

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!