Networking problem

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Networking problem

Post by johnvick »

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?
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Networking problem - fixed

Post by johnvick »

Turned out to be (I think) an IP address conflict - I thought I had eliminated this by rebooting the router a couple of times, but after removing a couple of redundant fixed IP addresses on the router it all came right.
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: Networking problem - fixed

Post by Fourdee »

johnvick wrote:Turned out to be (I think) an IP address conflict - I thought I had eliminated this by rebooting the router a couple of times, but after removing a couple of redundant fixed IP addresses on the router it all came right.
Hi John,

Great to hear its resolved. IP conflicts are easily done, you should see my router address reservation table (50+ entries) lol.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply