Lumper
Posts: 3
Joined: Sun Jun 28, 2015 9:42 am

WLan dont connect

Tue Jun 30, 2015 5:36 pm

Hello everybody,

before writing this, i spend hours on trying let my wlan work. I have the rasparry pi 2 and the wireless usb Nano card EP-N8508GS from Realtek RL8188CUS 802.11n

I did the follow things:

search on wiki.debian.org/wifi for a troubleshooting and work how they describe
install the realtek firmware and some wireless tools (

Code: Select all

sudo apt-get install firmware-realtek wireless-tools
)
after that look for stick with

Code: Select all

iwlist scan
i saw something on the screen
after that i generate a key with

Code: Select all

wpa_passphrase MYSSID MY_PRE_SHAREDKEY
and save this generated key
as next i edit the interfaces file

Code: Select all

sudo nano /etc/network/interfaces
in the wlan settings, i chanced manuel to auto and add two lines
wpa-ssid MYSSID
wpa-psk the generated key

after that i shut down the wlan and reactivat it with sudo ifdown wlan0 and sudo ifup wlan0
the pi trys to connect but it dont work

i use wpa2 in my router and checkt SSID and Key two times

what did i wrong? i never go down this deep in linux, i dont know what else i can do ... i dont have that easy wifi tool on my desktop.

I hope you can help me :)

iyosch
Posts: 19
Joined: Tue Jun 09, 2015 6:40 am
Location: Jakarta, Indonesia

Re: WLan dont connect

Fri Jul 03, 2015 8:48 am

//check the status of network

Code: Select all

ifconfig
//set the wlan on or off

Code: Select all

sudo ifup wlan0
sudo ifdown wlan0
//set the network interface

Code: Select all

sudo nano /etc/network/interface
on interface the current setup is (please remove my comment on the file bellow //comment)

Code: Select all

auto lo

iface lo inet loopback
iface eht0 inet dhcp//use inet via ethernet, it is the default setting

allow-hotplug wlan0 //use inet via lan, don't know the diff between manual and static
iface wlan0 inet manual

wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf //this is default setting

iface home inet static //use inet via static ip, home is used on wpa_supplicant.conf
address 10.99.10.220
netmask 255.255.255.0
gateway 10.99.10.1

iface default inet dhcp

allow-hotplug usb0 //to use internet via usb
iface usb0 inet dhcp
if you don't use static ip, you can delete from iface home inet static untill gateway 10.99.10.1
of course you need to set your own ip address, netmask, and gateway depend on your network setup
if you use custom dns

//to set up the dns server, when static use google dns 8.8.8.8
//when automatic, use 192.68.31.1 instead of 8.8.8.8

Code: Select all

sudo nano /etc/resolv.conf

Code: Select all

nameserver 8.8.8.8
//to scan the wireless connection

Code: Select all

iwlist scan
then check the wpa
//to set up the wpa_supplicant to connect the inet

Code: Select all

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
//the current set up is
//please remove all my comment on the files

Code: Select all

ctrl interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="your ssid name or the wireless name"
psk="the password to your ssid"

id_str="home" //home is name of the iface settings found on network interface, if you don't use static ip, remove this line

#Protocol type can be : RSN(for WPA2) and WPA (for WPA1)
proto=WPA

#Key management type can be : WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
key_mgmt=WPA-PSK

#Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
pairwise=TKIP

#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP
auth_alg=OPEN
}
//if you have more than one ssid to connect add them after this, if you only have 1 ssid to connect remove one of this network
network={
	ssid="AndroidAP"
	psk="qwerasdf"
	proto=RSN
	key_mgmt=WPA-PSK
	pairwise=CCMP
	auth_alg=OPEN
	disabled=1
}
if problems still occur, try to reboot

Code: Select all

sudo reboot
if problem still occur try to check your voltage power, low voltage may be the cause of the problem, if this is the problem you need a powered usb hub

Lumper
Posts: 3
Joined: Sun Jun 28, 2015 9:42 am

Re: WLan dont connect

Sun Jul 05, 2015 8:59 am

Thank you for your answer.

It worked. I didn't all these change, just a few modifications and after restart network it worked. :D

In future i want setup one or two additional SD cards, so i will print your solution :)

have a nice day and thank you again

Return to “Beginners”