LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Connect to wireless network Arch linux (https://www.linuxquestions.org/questions/linux-newbie-8/connect-to-wireless-network-arch-linux-880222/)

amilauduwerella 05-12-2011 12:31 AM

Connect to wireless network Arch linux
 
Hi all,

i just install arch linux yesterday.
And I have an issue with the wireless connection.

I can see wireless connections, when i click on thet networkmanager,
But i cannot connect. If I remove WPA or any security from the wireless connection(from my wifi router) I can connect to wireless network without any issue. But when there is any security is involved to the connection it does not connect.

Please tell me how to connect to wireless. I've been using debian for a long time, but there was no any issue with this connectiong thing.

I am new to arch linux.
Appreciate your help on this.
Thanks.

markush 05-12-2011 01:01 AM

How did you connect with Debian?

Markus

amilauduwerella 05-12-2011 01:28 AM

Hi,

using network-manager, it was easy, when i just click there it ask for the PSK and if I enter that then it connects.

Thanks,

markush 05-12-2011 01:29 AM

With Arch you can use wicd or wpa_supplicant, which encryption are you using?

Markus

amilauduwerella 05-12-2011 01:37 AM

i use WPA encryption.
at the moment I have no any encryption, if I use so I cannot connect, but i want WPA to be used as the encryption.

markush 05-12-2011 01:46 AM

I'm using wpa2 and have wpa_supplicant installed. wpa_supplicant comes with a configurationfile wpa_supplicant.conf which has to be configured with ssid and psk. Now I'm using Slackware, but once I've tried Arch on both of my laptops I used wpa_supplicant without any problems.

Markus

amilauduwerella 05-12-2011 01:53 AM

I just changed it to WPA2 now, and my "/etc/wpa_supplicant.conf" has following lines,
please correct me if i wrong.

network={
ssid="squeeze"
scan_ssid=1
key_mgmt=WPA-PSK
psk=24ampitiya
priority=1
}

__________________________________________________
NOTE


squeeze is my SSID
24ampitiya is my PSK

markush 05-12-2011 01:59 AM

You can execute wpa_supplicant on the commadline:
Code:

wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
where -D -i and -c are driver, interface and path to the config-file. If it doesn't work you'll get some errormessages which may be helpful. You can use the iwconfig command in order to check (in another terminal while wpa_supplicant is running) if you're now connected.

Markus

markush 05-12-2011 02:02 AM

BTW: the psk in your wpa_supplicant.conf file has to be quoted, here an example of my computer
Code:

samsung:~# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant GROUP=0

network={
        ssid="my ssid"
        proto=WPA RSN
        key_mgmt=WPA-PSK
        pairwise=TKIP
        psk="my key"
}

# Wildcard match for SSID (plaintext APs only). This example select any
# open AP regardless of its SSID.
#network={
#      key_mgmt=NONE
#}
samsung:~#

Markus

amilauduwerella 05-12-2011 02:18 AM

Quote:

# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.confLine 562: Invalid PSK '24ampitiya'.
Line 562: failed to parse psk '24ampitiya'.
Line 564: WPA-PSK accepted for key management, but no PSK configured.
Line 564: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
Quote:

#iwconfig
lo no wireless extensions.

wlan0 Ralink STA ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=100/100 Signal level:-43 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.


i even tried netcfg,
/etc/network.d/home file looks,

CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID='squeeze'
KEY='24ampitiya'
IP='dhcp'

]# netcfg home
:: home up [BUSY]
> WPA Authentication/Association Failed
[FAIL]
#

markush 05-12-2011 02:22 AM

Quote:

Code:

Line 562: failed to parse psk '24ampitiya'.

as I wrote, you'll have to quote the psk.

Markus

amilauduwerella 05-12-2011 02:49 AM

id does not give any error message but its not getting an IP address.

Quote:

# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
#
#
# iwconfig
lo no wireless extensions.

wlan0 Ralink STA ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=10/100 Signal level:0 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.

markush 05-12-2011 02:53 AM

Quote:

Originally Posted by amilauduwerella
Code:

Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated

it doesn't get an IP-adress because it is not authenticated at the accesspoint.

Could you please post the output of
Code:

lspci -k | grep -iA5 wireless
Markus

amilauduwerella 05-12-2011 02:59 AM

Hi Markus,

Quote:

# lspci -k | grep -iA5 wireless
02:00.0 Network controller: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
Subsystem: Hewlett-Packard Company Device 1453
Kernel driver in use: rt2860
Kernel modules: rt2800pci, rt2860sta
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
Subsystem: Hewlett-Packard Company Device 1426

markush 05-12-2011 03:11 AM

Look if the first line of your wpa_supplicant.conf is similar to mine
Code:

ctrl_interface=/var/run/wpa_supplicant GROUP=0
...

maybe there is something wrong....

and if this doesn't help, we'll have to check the kernelmodules.
Quote:

Originally Posted by amilauduwerella
Code:

Kernel driver in use: rt2860
Kernel modules: rt2800pci, rt2860sta


you may use lsmod in order to check which modules are loaded. As you know you can load and unload modules with modprobe and rmmod. Yet it seems your wireless adapter is using the rt2860 module. maybe you get it working with the other module rt2800pci. Check also that not both modules are loaded!

Markus


All times are GMT -5. The time now is 10:13 AM.