6

I recently purchased a USB wifi dongle for my raspberry pi 2 B and attempted to connect through the Wifi Networks Panel Item in Raspbain Jessie. After entering the key, nothing happened, so I decided to check the network configuration files in /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf. Everything seemed to be configured properly.

interfaces file:

# 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 lo
iface lo inet loopback

iface eth0 inet manual

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

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

wpa_supplicant:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="CXSD1"
        key_mgmt=NONE
        wep_key0="MYWIFIKEY"
}

When I checked the connection on ifconfig i got an innet6 addr, which I'm assuming is a static IP:

eth0      Link encap:Ethernet  HWaddr b8:27:eb:aa:f1:15  
          inet6 addr: fe80::b27a:4007:e151:7eea/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:600 errors:0 dropped:0 overruns:0 frame:0
          TX packets:600 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:49896 (48.7 KiB)  TX bytes:49896 (48.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 74:da:38:42:48:46  
          inet6 addr: fe80::ee15:adc7:776c:fe8a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:51 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I've tried SSHing to the computer and even used the epiphany web browser but to no avail. As I am still a beginner at Linux I would appreciate any help at fixing this issue and understanding what is wrong.

Thanks in advance!

  • 1
    @Milliways I have not tried ethernet because I don't have the proper cable, as I haven't had the need for it until now. As for my network, it is a typical Verizon network with a supplied Verizon router. I have been able to connect to it easily from many different devices. When I try to connect through the new panel feature on Raspbian my network's SSID shows up and I put in the correct key but then it doesn't do anything, and there no error messages or warnings. – Jonathan H. Dec 26 '15 at 23:43
  • 1
    I would be surprised if a modern Telco router is using WEP encryption as indicated by wep_key0 – Milliways Dec 26 '15 at 23:58
  • 1
    @Milliways The router is a few years old, but I am sure it uses WEP encryption. So Raspbain automatically detected the SSID, used right encryption type, and stored it properly. I cannot understand why on earth is could not be connecting. – Jonathan H. Dec 27 '15 at 0:05
  • 1
    Can you look over this Verizon page - and check for your router device - even they recommend using WPA or WPA2...! If it IS using one of those then trying to use WEP is not going to be that productive! – SlySven Dec 27 '15 at 0:18
  • 1
    @SlySven So it was using WEP. I did some research and found that the wifi dongle will not work properly with WEP. So I upgraded to WPA and it's working great. – Jonathan H. Dec 27 '15 at 3:41
4

So I found the solution for anyone who's encountering the same frustrating problem. If your router uses WEP encryption be sure to upgrade it to WPA/WPA2. Most Wifi USB adapters for pi do not work with WEP any longer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.