SteanerSVK
Posts: 4
Joined: Sun Dec 31, 2017 8:45 am

Pi3 - Wifi stopped working

Sun Dec 31, 2017 9:29 am

Hi. I'm using Raspbian Stretch 4.9.59-v7+ on my Raspberry Pi 3 and my wifi stopped working. I've been trying editing the network files, but I can't get it working. When I click on Network upper right corner it says "No wireless interfaces found". It worked yesterday, but today it just don't work.
That's my /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto wlan0
iface lo inet loopback

# allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet static
address 192.168.1.23
netmask 255.255.255.0
gateway 192.168.1.1
In /etc/dhcpcd.conf I've added these lines:
interface wlan0
static ip_address=192.168.1.23/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8
And my /etc/wpa_supplicant/wpa_supplicant.conf look like that:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=SK

network={
ssid="myssid"
psk="mypass"
key_mgmt=WPA-PSK
}

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Pi3 - Wifi stopped working

Sun Dec 31, 2017 12:14 pm

There should not be anything in /etc/network/interfaces except this for a wifi client application.

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
Only bridge interfaces go in here now.

SteanerSVK
Posts: 4
Joined: Sun Dec 31, 2017 8:45 am

Re: Pi3 - Wifi stopped working

Sun Dec 31, 2017 12:37 pm

I did what you said, and when I type the command: sudo ifdown wlan0 && sudo ifup wlan0 it says:
ifdown: interface wlan0 not configured
ifup: unknown interface wlan0

SteanerSVK
Posts: 4
Joined: Sun Dec 31, 2017 8:45 am

Re: Pi3 - Wifi stopped working

Sun Dec 31, 2017 12:44 pm

Oh, okay. It's working, thank you. Now, I probably can't use command sudo ifdown wlan0 but sudo ip link set wlan0 down, right?

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Pi3 - Wifi stopped working

Sun Dec 31, 2017 1:05 pm

SteanerSVK wrote: Oh, okay. It's working, thank you. Now, I probably can't use command sudo ifdown wlan0 but sudo ip link set wlan0 down, right?
That is correct.

Return to “Troubleshooting”