Raspberry PI 2 was the best christmas present this year, but I’m having some serious issues with the wi-fi connection setup. I manage to connect only with ethernet cable.
I also noticed a weird behavior of the internet connection: after a couple of minutes the raspberry is turned on the internet connection dies on every other device. It’s like the raspberry vampirizes the internet connection everywhere! Initially I thought it was a coincidence, but it happens almost everytime, so I think the two things are related.
I tried a lot of solutions I found (and understood) online, but I didn’t manage to make them work. Consider, please, I’m new to Raspberry and to Raspbian/Debian/Linux (I worked for a year on a PC with Ubuntu a couple of years ago, but I never had problems that I couldn’t resolve with 10 minutes on google).
The Wi-fi stick is being picked up and the stick modules are loaded (I think), here’s the result of lsmod:
Module Size Used by
arc4 1753 2
rt2800usb 17716 0
rt2800lib 71860 1 rt2800usb
rt2x00usb 8545 1 rt2800usb
rt2x00lib 36817 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 541952 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 419759 2 mac80211,rt2x00lib
crc_ccitt 1161 1 rt2800lib
rfkill 16659 2 cfg80211
bcm2835_gpiomem 3023 0
evdev 10226 6
joydev 9047 0
snd_bcm2835 19739 3
snd_pcm 74833 1 snd_bcm2835
snd_timer 18164 1 snd_pcm
snd 52116 9 snd_bcm2835,snd_timer,snd_pcm
uio_pdrv_genirq 2966 0
uio 8228 1 uio_pdrv_genirq
i2c_dev 6040 0
fuse 81721 3
ipv6 341380 30
Here’s the result of ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:35:ca:ef
inet6 addr: fe80::397a:2c60:ef27:a17d/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:248 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20832 (20.3 KiB) TX bytes:20832 (20.3 KiB)
wlan0 Link encap:Ethernet HWaddr 00:0f:60:08:d8:e4
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20f:60ff:fe08:d8e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4609 (4.5 KiB) TX bytes:17260 (16.8 KiB)
My interfaces file looks like this:
auto wlan0
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
And this is my wpa_supplicant.conf (yes, I’m absolutely sure the login and password are correct: I checked them a thousand times and tested them on other devices, they work)(hidden here):
network={
ssid="my id"
psk="my password"
}
Thanks everyone!
Edit: I'm adding some (I hope useful) information:
When i ping www.google.com i get unknown host
. When i ping 8.8.8.8 i get data:
64 bytes from 8.8.8.8: icmp_seq=1 ttl=53 time=48.4 sec
(etc)
Jessie
distro. Thanks – giri-sh Dec 25 '15 at 14:43/etc/network/interfaces
and what you have is incorrect. See http://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip – Milliways Dec 25 '15 at 23:19