I'm having trouble connecting to wifi. I have a fresh install of Raspbian, all packages are up to date.
The wifi adapter (Belkin N300 Micro Wireless USB Adapter - model F7D2102) is being detected, so there's no issue there; here's the output of lsusb
:
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 hub
Bus 001 Device 008: ID 05ac:020b Apple, Inc. Pro Keyboard [Mitsumi, A1048/US layout]
BUS 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
BUS 001 Device 004: ID 050d:2103 Belkin Components F7D2102 802.11n N300 Micro Wireless Adapter v3000 [Realtek RTL8192CU]
BUS 001 Device 005: ID 050d:0304 Belkin Components FSU304 USB 2.0 - 4 Ports Hub
BUS 001 Device 006: ID 05ac:0302 Apple, Inc. Optical Mouse [Fujitsu]
BUS 001 Device 007: ID 05ac:1003 Apple, Inc. Hub in Pro Keyboard {Mitsumi, A1048]
And here's the output of iwconfig
:
wlan0 IEEE 802.11bgn ESSID:"MY-NETWORK-NAME" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.452 GHz Access Point: <mac address>
Bit Rate: 300 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=98/100 Signal level=63/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
lo no wireless extensions
eth0 no wireless extensions
Here's the output of ipconfig
:
eth0 Link encap:Ethernet HWaddr:b8:27:eb:28:5c:6c
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
UP LOOPBACK RUNNING MTU:16436 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)
wlan0 Link encap:Ethernet HWaddr ec:1a:59:64:3a:36
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:26 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2586 (2.5KiB) TX bytes: 288(288.0 B)
This is my /etc/network/interfaces
:
auto lo
iface lo inet lookback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
address 192.168.2.34
netmask 255.255.255.0
gateway 192.168.2.1
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
And this is what I have in /etc/wpa_supplicant/wpa_supplicant.conf
:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<my-network-name>"
psk="<my-network-password>"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
auth_alg=OPEN
}
But no luck when I try to ping google.com
:
pi@raspberrypi ~ $ ping google.com
ping: unknown host google.com
Any ideas? Let me know if I can include any additional information here.