Power & Source of Big Ideas

NEO2 Ubuntu Static IP not working

Moderators: chensy, FATechsupport

Running a NEO2 with a NAS DOC on Ubuntu Xenial.
I have tried several ways to configure Static IP address and it looses all connectivity to eth0 and need to enter system via the serial port.

Is there a different approach to:

sudo nano /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.120
netmask 255.255.255.0
gateway 192.168.1.1
All I can suggest is looking at the RaspberryPi forums. There is discussion about setting up static IPs which I think involved changing dhcpd,conf

Good luck!
I tried this once and failed, so I searched some more without any luck. Went back to ModMyPi.
So I tried again by editing the dhcpcd.conf file, that did not exist in /etc

sudo nano /etc/dhcpcd.conf

And added:
nohook lookup-hostname
interface eth0

static ip_address=192.168.1.121/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

press ctrl+x to exit, “Y” to save, reboot and ifconfig and it worked!!!

Thanks

Who is online

In total there are 29 users online :: 0 registered, 0 hidden and 29 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 29 guests