Prevent MAC address to change at every reboot

Hello,

I noticed that the MAC address of certain adapters for example

dummy0

change, except of

eth0

at every reboot.

[ ] using random self ethernet address
[ ] using random host ethernet address

How can I prevent this of being random? My software requires the same MAC after every reboot.

Thanks!

Hi itadmin,

May I know what is your usecase that you need to have fix mac addr and what is the interface you are talking about… the dummy0?

Such command should change the mac addr to what you want.
sudo ifconfig dummy hw ether 00:22:22:ff:ff:ff

Hi,
my use-case is that a software license is depedent on the unique MAC address of the computer. The interface dummy0 just exists already on the JP 4.2.2 SD Image I downloaded. I don’t know the purpose of this.
Does the command persistent change the HW MAC?

You may safely remove dummy0 if you dont need it for debugging purpose

sudo systemctl disable nv-l4t-usb-device-mode.service
sudo systemctl disable nv-l4t-usb-device-mode-runtime.service
sudo systemctl mask nv-l4t-usb-device-mode.service
sudo systemctl mask nv-l4t-usb-device-mode-runtime.service
sudo reboot