This is a Pi2 running dietpi 126. This was working yesterday, today it isn’t - all I did was install the packages necessary to connect to an NFS share on another device on the LAN - maybe not relevant.
I have wired LAN configured as 192.168.1.2 and wifi as 192.168.1.37 - both static - and yesterday both worked independently.
Now I cannot connect by SSH or PiCam web interface unless I have a LAN cable plugged in. As soon as I plug one in I can connect - but using WinSCP on the wifi IP (192.168.1.37) and then opening PuTTy it reports I am connected to 192.168.1.2.
I run dietpi-config, go to networking all looks as it should on both interfaces. If I then restart the wifi interface and unplug the LAN cable I am connected by wifi and connecting with WinSCP/PuTTY gives the correct IP.
If I reboot with the LAN cable in I can disconnect this after it boots and then wifi works as it should.
This is the same with two wifi adaptors that are not the same model.
Sorry if this is confusing - the short version is that I cannot get wifi working unless I boot with a cable in and then remove it.
Any tips on how to troubleshoot this?