Change MAC address after every reboot
by lisamint from LinuxQuestions.org on (#57GCZ)
Hi Everyone,
I need some help, please. I tried to change the MAC address for every system start following the guidelines from different online posts and articles. I used '$ sudo crontab -e' and then I saved at the end of the prompted document file these two lines:
@reboot macchanger -r enp0 - (for Ethernet network adapter)
@reboot macchanger -r wlx - (for wireless network adapter)
After saving, exit and rebooting the system I typed 'sudo crontab -l' to verify the changes. Everything seemed to be working smoothly until suddenly I was not able to connect to the Internet. Have I missed something here?
Thanks in advance.


I need some help, please. I tried to change the MAC address for every system start following the guidelines from different online posts and articles. I used '$ sudo crontab -e' and then I saved at the end of the prompted document file these two lines:
@reboot macchanger -r enp0 - (for Ethernet network adapter)
@reboot macchanger -r wlx - (for wireless network adapter)
After saving, exit and rebooting the system I typed 'sudo crontab -l' to verify the changes. Everything seemed to be working smoothly until suddenly I was not able to connect to the Internet. Have I missed something here?
Thanks in advance.