PINE64
Variable Ethernet MAC address - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+--- Thread: Variable Ethernet MAC address (/showthread.php?tid=606)



Variable Ethernet MAC address - gsinjari - 04-10-2016

Hi,

I have 64+ with 2GB, and I did noticed that every time I power cycle the board Ethernet is getting a different MAC address, anyone noticed the same?

I normally do MAC reservation and assign fixed IP to all devices I have home, but with this one every time I setup the reservation with MAC, next boot it kept using the old dynamic IP with new MAC address, this is first time I see a device like that.

I am using Arch Linux Image with XFCE4 Base, no HDMI output like most. I am sure it is the same board, same CPU.

[alarm@alarm ~]$ uname -a
Linux alarm 3.10.65-2-pine64-longsleep #39 SMP PREEMPT Fri Mar 4 21:55:14 CET 2016 aarch64 GNU/Linux
[alarm@alarm ~]$ cat /proc/cpuinfo 
Processor : AArch64 Processor rev 4 (aarch64)
processor : 0
processor : 1
processor : 2
processor : 3
Features : fp asimd aes pmull sha1 sha2 crc32 
CPU implementer : 0x41
CPU architecture: AArch64
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

[alarm@alarm ~]$ cat /proc/meminfo 
MemTotal:        1002164 kB
MemFree:          815492 kB
Buffers:           10392 kB
Cached:            73076 kB


RE: Variable Ethernet MAC address - Leoncito81 - 04-10-2016

Add a line:
ethaddr=xx:xx:xx:xx:xx:xx to /boot/uEnv.txt
where xx:xx:xx:xx:xx:xx is the mac address printed on the sticker on the board. If you don't like that particular MAC address you can assign whatever you wish, just make sure it is unique on your network.


RE: Variable Ethernet MAC address - gsinjari - 04-10-2016

Thanks, will try that once I got the board working again, it is not staying online, it seems to be in a power cycle loop.


RE: Variable Ethernet MAC address - janjwerner - 04-10-2016

(04-10-2016, 02:38 PM)Leoncito81 Wrote: Add a line:
ethaddr=xx:xx:xx:xx:xx:xx to /boot/uEnv.txt
where xx:xx:xx:xx:xx:xx is the mac address printed on the sticker on the board. If you don't like that particular MAC address you can assign whatever you wish, just make sure it is unique on your network.

@Leoncito81
if you quote someone else's answer please attribute it.
see http://forum.pine64.org/showthread.php?tid=592&pid=5186#pid5186
cheers


RE: Variable Ethernet MAC address - Leoncito81 - 04-11-2016

Sorry, not trying to take credit. Couldn't figure out how to like the answer. :-) (like an idiot, didn't even think about pasting the link. )


RE: Variable Ethernet MAC address - Leoncito81 - 04-11-2016

I was looking at the boot log someone had posted on a different forum. Longsleep's build doesn't seem to set the MAC address for the Ethernet. I'm a relative newby to Arch, but I've never noticed this before.