I've booted up my RaspberryPi with the Belkin N300 Wireless Adapter, which has worked great for most of my other debian systems. The dongle is recognized by raspbian, both by lsmod
and lsusb
.
$ lsmod
Module Size Used by
..... ..... .....
8192cu 490353 0
$ lsusb
.....
Bus 001 Device 004: ID 050d:2103 Belkin Components F7D2102 802.11n N300 Micro Wireless Adapter v3000 [Realtek RTL8192CU]
The dongle can be utilized to scan for a wireless network.
$ iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:14:D1:3D:9E:01
ESSID:"TRENDnet"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key::on
Bit Rates:54 mb/s
Extra:wpa_ie=dd160050f20101000050f20201000050f2020100050f202
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Quality=100/100 Signal level=86/100
But for some reason, the dongle won't connect to a wireless network.
$ sudo ifconfig wlan0 up
$ sudo iwconfig wlan0 essid "TRENDnet" key s:"spiffy333"
$ sudo dhclient wlan0
RTNETLINK answers: File exists
After researching the issue for a while, one source instructed me to try configuring it while booting.
$sudo nano /etc/network/interfaces
auto lo
ifaceo lo inet loopback
iface etho0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "TRENDnet"
wpa-psk "spiffy333"
But this is all it prints out during boot!
Listening on LPF/wlan0/08:86:3b:34:26:29
Sending on LPF/wlan0/08:86:3b:34:26:29
Sending on Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 192.168.1.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.101 -- renewal in 262895 seconds.
ifup: interface wlan0 already configured.
I'm really quite confused; is the dongle somehow partially incompatible with the RaspberryPi, in that it can scan but won't connect? Or am I trying to connect to the wireless network incorrectly?