PINE64
Change Mac address on Linux - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86)
+--- Thread: Change Mac address on Linux (/showthread.php?tid=6609)



Change Mac address on Linux - fahr - 10-01-2018

I recently received my ROCK64 and installed various flavours of Linux on it. One thing I cannot seem to figure out is how to change the MAC address of ETH0.

On Armbian Bionic I tried putting it in /boot/armbianEnv.txt as etheraddr= or mac_addr=, I tried putting it in /etc/network/interfaces - all to no avail.
On Ayufan I was entirely unable to find anything to configure in this regard.

I read that a bunch of people complained about having ever changing MAC addresses on their board. I have not experienced that problem, but I want to set a specific MAC address - not fix the standard one.

Is there any way to do this? I could also recompile (part of) the DTBs if that is what it takes. I just need to know where I can find this setting (if at all). I can also install a new operating system.

I did find this; http://wiki.pine64.org/index.php/Set_MacAddress_on_ROCK64 - which suggests it is possible on Android. I really do need a normal Linux though...

Anyone know how to do this?


RE: Change Mac address on Linux - tllim - 10-04-2018

(10-01-2018, 06:34 AM)fahr Wrote: I recently received my ROCK64 and installed various flavours of Linux on it. One thing I cannot seem to figure out is how to change the MAC address of ETH0.

On Armbian Bionic I tried putting it in /boot/armbianEnv.txt as etheraddr= or mac_addr=, I tried putting it in /etc/network/interfaces - all to no avail.
On Ayufan I was entirely unable to find anything to configure in this regard.

I read that a bunch of people complained about having ever changing MAC addresses on their board. I have not experienced that problem, but I want to set a specific MAC address - not fix the standard one.

Is there any way to do this? I could also recompile (part of) the DTBs if that is what it takes. I just need to know where I can find this setting (if at all). I can also install a new operating system.

I did find this; http://wiki.pine64.org/index.php/Set_MacAddress_on_ROCK64 - which suggests it is possible on Android. I really do need a normal Linux though...

Anyone know how to do this?

Same method applies to Linux.


RE: Change Mac address on Linux - fahr - 10-05-2018

That is what I tried first, however, the tool has no success.

Reading times out and writing gives an error after a while and does nothing.

It also says "Found one Maskrom" at the bottom (instead of "Found one loader" as per the instructions).

Log says;

Start Writing...
Writing LANMAC...
LANMAC:1234567890ab
Write LANMAC fail
Elapse 12'47 seconds

so... not overly useful.


RE: Change Mac address on Linux - AlexS - 08-07-2019

Do anyone understand what and where is written to set the MAC address in the procedure described in
https://wiki.pine64.org/index.php/Set_Ma..._on_ROCK64 ?
How can i do this with linux machine with adb/rkdeveloptool/rkflashtool/etc...?