RPI3 RASPBIAN x64 - Make my wifi interface great again

January 15, 2024, 16:25

katapli

I managed to do nasty things in the config files and now wlan0 is not working. anyone has an idea ? here is my ifconfig return :
user@host:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.98  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2001:861:3840:b8d0:7288:59b9:1a33:3663  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::4dac:b931:7e66:9ba2  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:fc:a6:44  txqueuelen 1000  (Ethernet)
        RX packets 2778  bytes 256033 (250.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 153  bytes 17779 (17.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 17  bytes 3108 (3.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17  bytes 3108 (3.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:a9:f3:11  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

katapli

user@host:~ $ sudo ifup wlan0
ifup: unknown interface wlan0

oops.se

What OS? What nasty thing?

katapli

trying to set an AP and touching to
/etc/network/interfaces & /var/run/wpa_supplicant
`

oops.se

sudo nano /etc/network/interfaces and add:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
`

oops.se

And check that sudo nano /etc/wpa_supplicant/wpa_supplicant.conf has the below content
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="<Your Wi-Fi>"
        psk=<Your Wi-Fi password>
}