Static IPv4 address for Ethernet (wired) via Configurator AP won't stick


#1

I’m using FBOS 6.4.11 from staging branch.

Not a biggie for me, but curious to know “what I’m doing wrong” in Configurator :blush:

The eth0 address ends up being DHCP-ed from my router (Apple AirPort Extreme)
My other very basic Nerves-based RPi3 happily uses a static IPv4 address with same physical router.


#2

I’ve only lightly tested static ip addresses. What is the result you see? does it simply just never connect?


#3

On boot after Configuration eth0 does get an IPv4 address and default gateway, etc. so it connects up to the WebApp Ok.

Just that, as I did mention, that address has been DHCP-ed from the router (which means I have to go ping-ing and ARP-ing around to find it ! (instead of booting my old MacBook Pro and running AirPort Utility))


#4

For what it’s worth if you are looking for FarmBot on your network, it will be at farmbot-<4 unique-characters> just like when FarmBot is in configuration mode. For example: farmbot-eb30.

however I will investigate static ip settings not working.


#5

mDNS is not my friend . . that RPi3 running farmbot_os is wired to the root router and my Windows 10 and Ubuntu machines use only WiFi (extended). Apparently not many routers do UDP multicast over WiFi because it’s quite complicated (Group Keys, etc). I’ve bought Apple because they love Bonjour, but I’ve had limited success.

Yes, if you can see the Bot connections into your Web-App, my machine name is Farmbot-f390 (using that native name that you described)


#6

Hi @connor
I suspect I’ve found a source key-name issue underlying this issue :slight_smile:

FBOS Configurator and storage seems to use ipv4_method instead of ipv4_address_method.
I searched Nerves-Project/nerves_network for ipv4_method and came up empty.


#7

Good catch! i’ll update that


#8

Just noticed that you’re getting organized towards another FBOS release . .
Did you need a new Issue or a PR for this ?


#9

I did a lot of looking for when my ports kept closing down on my router / switch. My Netgear router has come a long way from three network cards in an at box to a complete operating system with several kinds of port controls.

Farmbot is a server which requires packet / port control access from the outside. each returning packet from the server and to the server is identified. This allows me to put packet forwarding on the router. This only opens those ports for the returning packets that the farmbot server needs and closes the ports for all others. This maintains the firewall aspects of the router for all other packets.

It works fine and allows farmbot to do its thing as a server on an internal network.

best

al


#10

We actually have a couple updates being worked on right now. I haven’t tackled this one yet, but mostly to avoid git merge conflicts than anything. I’ll probably get it just before v6.4.12 is pushed out the door.


#11

Thanks @Albert . . the code fix that @connor plans to make will address my original post.