(01-25-2021, 09:42 AM)as365n4 Wrote: create /etc/systemd/network/00-default.link like below
Code:[Match]
MACAddress=da:19:c8:7a:6d:f4 <--- whatever your original address is
[Link]
MACAddress=da:19:c8:7a:6d:f5 <--- your desired address
NamePolicy=kernel database onboard slot path
This will overwrite the system settings at each boot and works fine on Arch and Debian.
FIRST: I removed the previous entries from /boot/armbianEnv.txt...
Code:
dietpi@DietPi:~$ cat /boot/armbianEnv.txt
verbosity=4
bootlogo=false
overlay_prefix=rockchip
rootdev=UUID=1542112e-4bd9-4f4a-9660-e9405c792736
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
docker_optimizations=off
console=none
SECOND: I created the /etc/systemd/network/00-default.link file and entered the five lines of configuration into it:
Code:
dietpi@DietPi:~$ ls -l /etc/systemd/network/
total 4
-rw-r--r-- 1 root root 118 Jan 25 16:26 00-default.link
lrwxrwxrwx 1 root root 9 Dec 16 07:48 99-default.link -> /dev/null
dietpi@DietPi:~$ cat /etc/systemd/network/00-default.link
[Match]
MACAddress=86:e0:c0:ea:fa:a9
[Link]
MACAddress=00:06:dc:00:00:01
NamePolicy=kernel database onboard slot path
THIRD: I rebooted the Rock64.
But the MAC address persists, unchanged:
Code:
dietpi@DietPi:~$ ip add | grep ether | awk '{ print $2 }'
86:e0:c0:ea:fa:a9
Is there something more that I need to do? e.g., Perhaps remove /etc/systemd/network/99-default.link?
TIA!
Eric P.
Portland, Oregon
Portland, Oregon