This is a hass.io installations. hass.io hides a lot of the OS details from the user. I am using the debugger ssh -p22222. Also, I am not sure where hass-io leaves off and resin starts, so forgive me as I learn.
All my network issues started when I had hass-io upgrade the OS. Went from what the dashboard called version 1 to version 1.3. Been googling for command to get resin version, have not found it yet, so for now I have to use the hass-io os version.
I posted my resin-sample, an ifconfig, and route. I am expecting my eth0 to be (Static) 192.168.1.160 and the gateway to be 192.168.1.254. As you can see, it is getting 192.168.1.8 which is in my dhcp range.
Let me start with my resin-sample file
root@hassio:/# cat /mnt/boot/system-connections/resin-sample
[connection]
id=HomeAssistant
type=ethernet
interface-name=eth0
permissions=
secondaries=
[ethernet]
mac-address-blacklist=
[ipv4]
address1=192.168.1.160/24,192.168.1.254
dns=8.8.8.8;8.8.4.4;
dns-search=
method=manual
ignore-auto-routes=true
method=auto
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
Here is my ifconfig
root@hassio:/# ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:90:02:71:64
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:90ff:fe02:7164/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2582 errors:0 dropped:0 overruns:0 frame:0
TX packets:2531 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:139055 (135.7 KiB) TX bytes:360154 (351.7 KiB)
eth0 Link encap:Ethernet HWaddr B8:27:EB:DE:A5:A0
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::933d:168a:1380:365c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60318 errors:0 dropped:0 overruns:0 frame:0
TX packets:25242 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5128935 (4.8 MiB) TX bytes:3695733 (3.5 MiB)
hassio Link encap:Ethernet HWaddr 02:42:50:45:22:00
inet addr:172.30.32.1 Bcast:0.0.0.0 Mask:255.255.254.0
inet6 addr: fe80::42:50ff:fe45:2200/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6362 errors:0 dropped:0 overruns:0 frame:0
TX packets:6462 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1002298 (978.8 KiB) TX bytes:521895 (509.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:225 errors:0 dropped:0 overruns:0 frame:0
TX packets:225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:16075 (15.6 KiB) TX bytes:16075 (15.6 KiB)
veth5f47157 Link encap:Ethernet HWaddr BA:C2:3B:EA:3A:DF
inet6 addr: fe80::b8c2:3bff:feea:3adf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6358 errors:0 dropped:0 overruns:0 frame:0
TX packets:6478 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1091088 (1.0 MiB) TX bytes:524580 (512.2 KiB)
vethe0198d8 Link encap:Ethernet HWaddr AE:CA:15:A0:9F:0B
inet6 addr: fe80::acca:15ff:fea0:9f0b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2582 errors:0 dropped:0 overruns:0 frame:0
TX packets:2550 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:175203 (171.0 KiB) TX bytes:363232 (354.7 KiB)
wlan0 Link encap:Ethernet HWaddr 32:F5:E0:10:CF:46
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:71226 errors:0 dropped:71226 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28135354 (26.8 MiB) TX bytes:0 (0.0 B)
root@hassio:/#
And the route
root@hassio:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.17.0.0 * 255.255.0.0 U 0 0 0 docker0
172.30.32.0 * 255.255.254.0 U 0 0 0 hassio
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0
root@hassio:/#