[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian on raspberrypi: failed to configure wlan0



On Wed, 18 Dec 2019 16:28:40 +0100
Franco Martelli <martellif67@gmail.com> wrote:

> Hi everybody,
> 
> Following the instructions reported on the Debian unofficial port
> home-site [1] I successful installed Debian on raspberrypi 3B 2016 all
> works fine for my needs but configuring the built-in wi-fi interface
> apparently it works but reporting errors:
> 
> ~# ip addr show dev wlan0
> 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
> default qlen 1000
>     link/ether b8:27:eb:8b:10:67 brd ff:ff:ff:ff:ff:ff
> 
> ~# ifup wlan0
> RTNETLINK answers: File exists
> ifup: failed to bring up wlan0
> 
> the ifup command reports that it fails to bring up but the interface
> is configured:
> 
> ~# ip addr show dev wlan0
> 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> pfifo_fast state DORMANT group default qlen 1000
>     link/ether b8:27:eb:8b:10:67 brd ff:ff:ff:ff:ff:ff
>     inet 192.168.0.9/24 brd 192.168.0.255 scope global wlan0
>        valid_lft forever preferred_lft forever
> 
> if I try to de-configure the interface it fails:
> 
> ~# ifdown wlan0
> ifdown: interface wlan0 not configured
> 
> How can I de-configure wlan0 and why do I get errors when I bring up
> with ifup command?
> Some useful information about my configuration:
> 
> ~# cat /etc/network/interfaces.d/wlan0
> # allow-hotplug wlan0
> iface wlan0 inet static
>     address 192.168.0.9
>     netmask 255.255.255.0
>     network 192.168.0.0
>     broadcast 192.168.0.255
>     gateway 192.168.0.1
>     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
> 
> ~# cat /etc/wpa_supplicant/wpa_supplicant.conf
> ctrl_interface=/var/run/wpa_supplicant
> update_config=1
> network={
>     ssid="myessid"
>     psk=dfd452fedacd69d6d54582770dc93acebfb6f2ec2aac7d2e3f24e6ecacafc487
> }
> 
> ~# systemctl is-enabled wpa_supplicant
> disabled
> 
> Thanks for any answer, best regards.
> 
> [1] https://salsa.debian.org/raspi-team/image-specs

You should try to associate the wireless nic with your wifi by running
only wpa_supplicant to see if that succeeds (the link state should
change - the mode in the `iwconfig` command should be managed).

For example this is how my config looks like
```
allow-hotplug wlx000f00bf4a3f
iface wlx000f00bf4a3f inet static
        address 192.168.1.71
        netmask 255.255.255.0
        gateway 192.168.1.254
        wpa-ssid ssid-name
        wpa-psk
        e8918bce6980814557b664fb52bda4d342174d2a2c95dd06078d7a29851de799
```

Hope this helps.


-- 
Regards,
Nektarios Katakis


Reply to: