possible to set a static IP using uEnv.txt?
#2
You can set it with

/etc/network/interfaces

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

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 4.2.2.1 4.2.2.2 8.8.8.8



and to set hostname do this

echo myhostname > /etc/hostname


now edit /etc/hosts

and add an entry like so

127.0.0.1 localhost
192.168.1.100 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
  Reply


Messages In This Thread
RE: possible to set a static IP using uEnv.txt? - by lenny.raposo-pine64.pro - 04-25-2016, 04:24 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)