PINE64
How to Statically Assign IP address to Pine64? - 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)
+---- Forum: Archlinux (https://forum.pine64.org/forumdisplay.php?fid=25)
+---- Thread: How to Statically Assign IP address to Pine64? (/showthread.php?tid=592)



How to Statically Assign IP address to Pine64? - spruce1 - 04-07-2016

I would like to statically assign an IP address to my Pine64 on my home network, however, I've noticed that every time I boot the board it comes up with a different ethernet MAC address. This behavior is unlike anything else on my home network which have fixed MAC addresses. Normally, assigning static ip addresses is easy for my home network --- surf to my wifi router and enter MAC address and static ip address assignment in its DHCP table and then I'm done.
With a new MAC address at each boot completely circumvents this simple solution. What can I do to fix the ip address assignment. BTW, I've installed and am running ArchLinux.

Thanks.


RE: How to Statically Assign IP address to Pine64? - DaveyDarko - 04-07-2016

Not an Arch user myself, but this link should help:

https://wiki.archlinux.org/index.php/Network_configuration#Configure_the_IP_address

Just a note: what you "normally" do isn't really setting a static IP, i just forcing the router to always issue the same IP, through DHCP, to your computer. Hook your computer, that you only changed your router settings on and thus is still configured for dynamic address, to any other network and the IP would change.


RE: How to Statically Assign IP address to Pine64? - spruce1 - 04-07-2016

What you say is true in general but, for my home network, using my router's DHCP functionality to simply reassign a known and repeatable unique IP address to all my devices based on a MAC address table without requiring me to understand lower level configuration of each and every device on the home network is clearly superior in my opinion. It is clean and simple! Behavior of every device on my network is no different than if every IP address was classically statically assigned according to the info in the link you provided.

Let me rephrase my question: is there a way to turn off this Ethernet MAC address generation in ArchLinux at every boot?


RE: How to Statically Assign IP address to Pine64? - Leoncito81 - 04-07-2016

How have you setup your Ethernet?


RE: How to Statically Assign IP address to Pine64? - janjwerner - 04-07-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.
Cheers


RE: How to Statically Assign IP address to Pine64? - Leoncito81 - 04-07-2016

https://wiki.archlinux.org/index.php/Dhcpcd


RE: How to Statically Assign IP address to Pine64? - cdslashetc - 06-29-2016

Thanks everyone for this thread. This information ought to be in the pine64 wiki!