OpenMarine
static IP on pypilot - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: static IP on pypilot (/showthread.php?tid=2496)



static IP on pypilot - Ola_H - 2020-04-10

Hi

My openplotter is AP and my pypilot runs on a rpZero as client.
I would like the zero to get a static IP when connecting to AP.
would like to state that in dhcpcd.config on the zero, but I can't find it?

would this work?:

Code:
interface wlan9
static ip_address=10.10.10.104/24



RE: static IP on pypilot - seandepagnier - 2020-04-14

At this time the easiest way would be to assign the zero's mac address a static ip in the router. Otherwise, it may be possible in dhcpcd config but this isn't implemented. Normally you don't need to run dhcp with a static ip. static ip, along with ad-hoc wifi sounds like a good feature to add to a future version of tinypilot.


RE: static IP on pypilot - rmvdmrl - 2020-05-10

Hi Ola,

Perhaps a late reaction and I hope you were able to figure this out for yourself by now. I have also been looking for a way to do this and I thought it might be useful to give a bit more information on how I solved this so others can use it.

As Sean mentioned the easiest way to get this working is in the router, in this case the Openplotter Rpi. You can do this by modifying etc/dnsmasq.conf on the openplotter by adding dhcp-host=macaddres(tinypilot),fixed IP

Fixed IP should be in the range of the DHCP range that is also in dnsmasq.conf (I believe it is starting at 10.10.10.50)

I have also done other options that you can find in the forum http://forum.openmarine.net/showthread.php?tid=1816 started by svkatielee and give a fixed IP in bootconf.sh it works but is a bit more complex and it needs to be redone after upgrading TP.

Hope this helps you and others.

Rob


RE: static IP on pypilot - seandepagnier - 2020-05-10

I will add static ip support to tinypilot in the future.. eventually but for now I suggest editing /etc/dnsmasq.conf on openplotter