Leave the '99' file alone. It's there for all the standard cases. (I think it's actually pointing to /dev/null)
Create a file in /etc/systemd/network. The only important part of the name is the number, because
You want the file to be executed before '99' so the easiest is to start it with '00' (if you need more than one file you just increase the number).
I would make the rest of the name something related to the target device, e.g. eth0
So create e.g. /etc/systemd/network/00-eth0.link with these contents:
Code: Select all
The Match block determines which device is going to be spoofed. In this case it's eth0. You can choose other characteristics, such as the old MAC address. See the docs linked to below for more detailed info.
The Link section determines the new MAC address.
That's it. Save the file and reboot the Pi and to activate the new setting.
https://wiki.archlinux.org/index.php/MA ... s_spoofing
https://jlk.fjfi.cvut.cz/arch/manpages/ ... emd.link.5
(locally administered Mac addresses)