PINE64
setting a fixed Mac address on a PineCube - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineCube (https://forum.pine64.org/forumdisplay.php?fid=149)
+--- Forum: General Discussion on PineCube (https://forum.pine64.org/forumdisplay.php?fid=150)
+--- Thread: setting a fixed Mac address on a PineCube (/showthread.php?tid=15366)



setting a fixed Mac address on a PineCube - ajellisuk - 11-19-2021

Hello

I have got a PineCube running Armbian, and is also using Uboot 2021.07-armbian.

I have found that the mac address keeps changing, and consequently the ip address keeps changing too. This is a real nuiscence.

I have looked for a soltution to this problem, and found some ideas on the One64 forum. Unforutnately the suggestions there didn't work for me on the PineCube.

I have tried adding these to /boot/boot.cmd (no both at once)

Code:
setenv bootargs "${bootargs} ethaddr=7e:50:d1:01:57:68"

setenv bootargs "${bootargs} mac_addr=7e:50:d1:01:57:68"

If I do 
Quote:cat /proc/cmdline


I can see that the parameters are passed to the kernel, but are not being acted upon.

I have also tried adding these to /boot/armbianEnv.txt

Code:
mac_addr=7e:50:d1:01:57:68
ethaddr=7e:50:d1:01:57:68
Again not both at once.

Can someone please tell me what I need to do to get the mac address to remain the same on subsequent boots.

Thanks in advance

Andrew


RE: setting a fixed Mac address on a PineCube - lgtrombetta - 11-23-2021

Hi Andrew,

I just tried the PineCube for the first time myself, running armbian bullseye.

At first it seemed to have the same issue, but after a system upgrade it now seems to have a persistent MAC address.

Hope it helps,
Leonardo.


RE: setting a fixed Mac address on a PineCube - ajellisuk - 11-26-2021

Hi Leonardo,

Thanks for your reply.

When you say, "system upgrade", what exactly was upgraded? Was it Armbian? Or is there some other firmware that was upgraded?

Andrew


RE: setting a fixed Mac address on a PineCube - lgtrombetta - 11-29-2021

(11-26-2021, 09:56 AM)ajellisuk Wrote: Hi Leonardo,

Thanks for your reply.

When you say, "system upgrade", what exactly was upgraded? Was it Armbian? Or is there some other firmware that was upgraded?

Andrew

Indeed, I just updated Armbian via apt. To be honest I don't know what was changed that fixed it.

Notice that I was on the Bullseye version of Armbian, which is labeled as unstable.