I have a device with 3 network interfaces: 1 wifi and 2 ethernet.
I setup the wifi connection when I created the .img in the balena cloud dashboard.
I would like to set a static IP on one of the eth interfaces, keeping the dynamic IP on the wifi interface. (The device is connected to 2 differrent networks : wifi for internet access and eth for the local network).
I don’t understand if I need to create a second file in system-connection/or if I can use the same as for the wifi and add the eth configuration? If I create a new file, do I need to name it with a specific name?
Hi @lpierrat, glad you found a solution, and as you found, you should create a new file in /system-connections/ with any name. As to the other optional settings, these are described by the Network Manager settings that are used to configure the networking in balenaOS https://developer.gnome.org/NetworkManager/unstable/nm-settings.html
i only had remote access to my raspberry pi, so i used the steps below to set a static IP on the WiFi interface. I didn’t find any notes on the full process including the full path, so here it is. the file /mnt/boot/system-connections/resin-wifi-01 needs to be modified as follows.
root@3416ca5:/mnt/boot/system-connections# ls
README.ignore resin-sample.ignore resin-wifi-01
In the example below, the WiFi router’s gateway is at 192.168.1.1 and netmask 24. Use your network’s parameters instead. In our system, dynamic IPs only go till x.x.x.128; anything above that, e.g. x.x.x.140, will have no collisions.