How do I enable mac address randomization in NetworkManager?

asked 2016-07-24 17:31:49 +0000

countercharge gravatar image

It seems that Fedora 24 and NetworkManager 1.2 has broken macchanger and randomized mac addresses are no longer persistent. When I toggle my RF kill switch and enable the radios, the randomized mac address is replaced with the hardware/burned in mac address of the interface. I see that now NetworkManager has mac address randomization built in but I haven't been able to find clear instructions on how to use or enable it.

Adding [connection] wifi.mac-address-randomization=2

to /etc/NetworkManager/NetworkManager.conf

results in an inability to connect to anything. How am I supposed to use this feature properly? I want the randomization to be enabled all the time whenever I use the wifi interface. I understand it randomizes during scanning, but I also want it randomized during connection.

edit retag flag offensive close merge delete