Raspberry PI gateway ok only with dhcp...

I had many issues with frequent raspberry PI lockups when using SD cards running emoncms (v4 and v5, did not try v6).

I decided then to switch to "pi gateway" and the system is running like a charm! Thanks!!
The only issue I have is that I when I set a static IP address on my raspberry data forwarding to emoncms does not work.

If I go to root/oem_gateway   and relaunch the py script (after killing old process and configuring oemgateway.conf there) all works...
I cannot see the relation between static IP and the gateway function.... 
(Note: static IP address and gateway is fine since I can reach my raspberry using ssh from internet...)

Anyone got similiar issues?

Thanks

Scarlaz's picture

Re: Raspberry PI gateway ok only with dhcp...

solved!

It happened that with fixed ip the name resolution was not working. Had to install resolvconf 

now is ok. Maybe it is an issue with the distributed image.

Regards

rmce's picture

Re: Raspberry PI gateway ok only with dhcp...

Hi there,

I was facing same issue and was solved following Scarlaz's notes:

1. Enable RW and DHCP for eth0:

# ipe-rw
# nano /etc/network/interfaces

auto lo
iface lo inet loopback
iface eth0 inet dhcp

2. Install resolvconf

​# apt-get install resolvconf

3. Set static IP and disable DHCP for eth0:

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.96
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers  8.8.8.8 8.8.4.4

4. Restart Raspberry Pi:

# reboot

 

Hope this help.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.