Ask Your Question

How can I set a static MAC address on boot?

asked 2018-02-13 00:54:00 -0500

bob323 gravatar image

updated 2018-02-13 23:28:30 -0500

I use software that ties a license number to the network adapter's MAC address. In my case, it's my wireless network adapter's address. With each reboot, the MAC address of both my wireless adapter and my ethernet adapter are changed, probably for security reasons. The problem with this is that the software thinks I'm trying to use it on another computer and makes me reactivate the license every time I reboot. I would like to set my wireless adapter to have a single MAC address every time the computer starts, but I haven't been able to find a way to do that.

I know it's possible to set the ethernet adapter to have a static MAC address by doing the following: sudo vi /etc/sysconfig/network-scripts/ifcfg-enp0s25, add MACADDR=$foo, and exit. However, while there are ifcfg files for the ethernet and loopback network devices, there is not one for the wireless network adapter. How can I accomplish the same thing with the wireless adapter?

Update: I have added the following to /etc/NetworkManager/NetworkManager.conf:



Still no luck. I thought for sure this would fix the problem. I am referring to the official documentation found here. Any help?

edit retag flag offensive close merge delete


Try to use wifi.mac-address-randomization=1 in the [connection] section and make sure to restart NetworkManger daemon afterwards. A value of 1 means never randomize....

thomaswood gravatar imagethomaswood ( 2018-02-17 04:46:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-12 14:12:46 -0500

Not all devices have a method to st the MAC address ; it is vendor specific

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-02-13 00:54:00 -0500

Seen: 375 times

Last updated: Feb 13 '18