Power & Source of Big Ideas

ZeroPi Static IP

Moderators: chensy, FATechsupport

Hi, I purchased a zero pi and applied the linux OS image to the sd card. I'm trying to setup a static IP on the Zeropi following the instructions on the Wiki but I'm unable to connect to the internet when I set the IP to static, only when the IP is issued from DHCP does it connect to the internet. Otherwise the ZeroPi is only available on the local LAN. I have the network manager disabled, and I have it turned off as a service. When I apply the config to /etc/network/interfaces using nano, and save it, reboot the pi, the settings take, but I can't connect to the internet.

Here is the config I have for /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# network interface not managed by Network Manager
allow-hotplug eth0
iface eth0 inet static

My LAN is setup as 192.168.1.X so the gateway setting is correct, like I said it works fine under DHCP its only when I try to set the IP as static does it fail to connect to the internet, but continues to be accessible on the local LAN. Is there something I am missing in the config?
mostly when I got this problem there was any empty/bad

Never get DNS-servers to "work" from /etc/network/interfaces. I had to manually write them to
like (where GUIDO is my domain):

Code: Select all

search GUIDO
domain GUIDO

Without DNS from /etc/resolv.conf you will never can connect to the internet :)

Who is online

In total there are 13 users online :: 0 registered, 0 hidden and 13 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 13 guests