Rock64: MAC Address is NOT Unique!
#3
(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
  Reply


Messages In This Thread
Rock64: MAC Address is NOT Unique! - by PDXpi - 01-24-2021, 08:19 PM
RE: Rock64: MAC Address is NOT Unique! - by PDXpi - 01-25-2021, 07:15 PM
RE: Rock64: MAC Address is NOT Unique! - by PDXpi - 02-01-2021, 12:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ROCK64 keeps connection bikz19 1 2,608 03-09-2019, 07:39 PM
Last Post: dkryder
  connect 2 network cable to rock64 device. idanskira 0 1,894 05-29-2018, 07:34 AM
Last Post: idanskira
  The Mac Address Would Not Change on Debian, nor Gentoo MarkHaysHarris777 5 9,025 03-27-2017, 12:57 PM
Last Post: grobbs
Question no permanent MAC address? need it to give Pine64 a reserved IP. faddah 14 23,719 08-24-2016, 03:25 PM
Last Post: MarkHaysHarris777
  Howto use MAC address as printed on the label on the back longsleep 3 6,167 08-21-2016, 07:31 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)