Adding an eth adapter to running setup on a zero w


I am currently running pihole just fine via wifi on a raspberry zero w (no lan by default), I decided to switch to a lan connection, and figured the easiest way to do this is to use an adapter (usb -> ethernet).

So my setup is headless and I ssh into it,

ifconfig gives me wlan0, lo and eth0, I ran sudo ifconfig eth0 up to turn eth connection on
and then tried the naive approach and ran sudo ifconfig wlan0 down, whicht then killed my ssh.

The pi was only available after restarting it, which I guess turned wlan0 back on.
So I guess there is more to do to switch the connection type successfully but I could not find any information about it.

If you have any suggestions, thanks in advance!

That's the expected result if you kill the very network connection that ssh is using. :wink:
To avoid this, exit your shell and reconnect by ssh using the IP associated with eth0 before you down your wlan0 interface.

And to make Pi-hole aware of a changed network configuration, run

pihole -r

and select Reconfigure.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.