Yesterday I had tried to connect my RasPi 4b to ethernet (it was on wifi before). It didnt work so I tried to revert back to WiFi.
Now my static IP doesn't work. I tried editing /etc/dhcpcd.conf
and it didnt work, I am now bummed and I don't know what else I could do. I know I am not describing my problem clearly but I cannot because I do not know why it stopped working. It all happened after I added dtoverlay=disable-wifi
in /boot/config.txt
(I removed it now). I am running Rasbian Buster Lite (I use the raspi as a web server and home NAS).
Series of events
I wanted to switch to ethernet.
The ethernet cable did not work (status lights didnt turn on)
I thought maybe disabling WiFi would solve the problem
I added dtoverlay=disable-wifi in /boot/config.txt
It didnt work. I decided to not go further
I decided to switch back to WiFi
I removed dtoverlay=disable-wifi from /boot/config.txt
I rebooted. Pi didn't connect to WiFi
NEXT DAY:
Connected Pi to WiFi using raspi-config
Pi didn't have a static IP, one reboot its 192.168.0.31 then next reboot 192.168.0.32 and so on
I followed tutorials on how to set static ip again, didnt work.
I resorted to asking the rasperry pi forums
Contents of /etc/dhcpcd.conf
:
interface wlan0
static ip_address=192.168.0.10/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
Thanks in advance for your help.