possible to set a static IP using uEnv.txt?
Hi everyone,

I tried googling this, but came across a lot of different information that doesn't seem to work for me.

I'm interested if there's a way to use uEnv.txt to set up a static/manual IP? ideally i'd like to configure ip, gateway, subnet and hostname. The reason I want to do this in uEnv.txt and not the usual way, is I am trying to configure the Pine64 using a link-local connection to my computer. It's directly linked to it using a single ethernet cable, so there is no DHCP server. If everything is set up manually it should still work this way...

i tried using the following, but it does *not* work (from http://textuploader.com/xodk)

You can set it with


and add this to the file (using as the static in this example)

auto eth0
iface eth0 inet static

and to set hostname do this

echo myhostname > /etc/hostname

now edit /etc/hosts

and add an entry like so localhost myhostname

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

then reboot Wink
If you like my work be sure to check out my site or wish to donate to the cause

Cheers Big Grin
I'm using the latest 16.04 image (xubuntu-xenial-20160501-longsleep-pine64-8GB.zip)

In addition to changing /etc/network/interfaces as described by lenny, I removed the include for interfaces.d so it wouldn't bring in the definition for eth0 from there.

I also had to fix a common problem with recent ubuntu releases with static IPs: /etc/resolv.conf is a symlink to a file created during startup by some network manager program. If you're using a static IP, it doesn't honor your nameserver entries. You need to rm the symlink, and install your own resolv.conf.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Configuring static IP danwald10 3 3,836 01-21-2017, 06:31 AM
Last Post: VandaL.pr!

Forum Jump:

Users browsing this thread: 1 Guest(s)