LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 03-20-2006, 05:22 PM   #1
pchw
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
wireless doesn't work if encryption turned on


dell inspiron 9300 laptop, ipw2200bg wireless card, mandake 10.1 recognized card but didn't install correctly, recently upgraded to mandriva 2006 le, installs card just great! When router is set for no encryption on wireless, card works great, when encryption turned on, can't see gateway so can't get out, have configured with open and secure wep and pka, still no joy, laptop dual boots to winxp and have set for wpa in that os and it works just fine, help????
 
Old 03-21-2006, 12:23 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
A couple of things to think about:

Check your wpa_supplicant configuration file and make sure that you haven't mistyped a key

Have a look through your logs and see if the wireless driver or wpa_supplicant are complaining about anything (/var/log/syslog and /var/log/messages)

Check the output of iwconfig and see if it is properly configured
 
Old 03-21-2006, 12:56 PM   #3
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
I tried and failed trying to get WPA-PSK up and running straight away... too many problems.

I got my card working with 64bit WEP (10 HEX character key), OPEN, first. Try that, then have a go for WPA.

I am close to getting WPA up and running, but I'm not there yet!
 
Old 03-22-2006, 12:38 AM   #4
pchw
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
As I mentioned before, it doesn't matter how I set up the encryption, still doesn't work. WEP doesn't work properly (causes problems) on XP, but wpa works. I tried open wep on linux, but no luck. I typed /sbin/iwconfig and saw that my encryption key wasn't typed in as well as a lot of other settings. I did a man iwconfig to determine how to enter some of the settings. I then went into manage the network settings and when I re-entered the encryption key into the gui, it lost it in iwconfig. I also entered a channel and it intepreted it as a frequency. I also tried typing /var/log/syslog and /var/log/messages and I got a message saying I didn't have permission, but I am doing this as root. It seems to not hold the settings. I still can't even ping myself, so it's not even getting so far as the network. To reiterate, it works in xp with wpa just fine, and if I have security for wireless on the router with no encryption it works just fine in linux, just not with encrypted wireless in linux (and this is a dual boot laptop). At least this version let me set up the wireless, version 10.1 wouldn't work at all. Of course encrypted wireless if the setting of choice. : )
 
Old 03-22-2006, 07:04 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I then went into manage the network settings and when I re-entered the encryption key into the gui, it lost it in iwconfig.
This is a good reason not to use the GUI. I would stick with a console until you get this figured out. The GUI is just adding to your troubles.
Quote:
I also entered a channel and it intepreted it as a frequency.
That is what is supposed to happen. Channels are just a convenient way to express frequency. It is much easier to remember channel 11 than 2.472Ghz.
Quote:
I also tried typing /var/log/syslog and /var/log/messages and I got a message saying I didn't have permission, but I am doing this as root.
How are you becoming root? If you are using su, try su - (note the -). Root really should be able to access those logs.

If you are trying to sort out wpa, you probably should post your configuration file and the command you are using to call wpa_supplicant.
 
Old 03-22-2006, 12:19 PM   #6
pchw
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I used the gui to set up the network wireless in the first place, and then it was suggested in this forum to work with iwconfig (I don't know much about linux, still learning, much of this is foreign to me). As far as becoming root, the distro wouldn't let me set up the wireless without being root, even though I logged into the control panel as root. Therefore, I logged in as root. I ordinarily refrain from that, but this is an exception for the reasons I stated above. Thus, I was about as root as you can get. I shouldn't have to su when logged in as root, should I? Also, since I don't know much about this, can you please tell me exactly which config file to post (path, is it iwconfig? Also, I don't understand about calling he wpa-supplicant. I have heard of it, but don't know anything about it. Sorry for all the questions. Thanks. : )
 
Old 03-22-2006, 03:17 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Therefore, I logged in as root. I ordinarily refrain from that, but this is an exception for the reasons I stated above. Thus, I was about as root as you can get.
I agree, you can't get any more root than logging in as root. And no, if you are root, you shouldn't need to use su. Which means you should be able to read your log files. If you run ls -l /var/log can you see who owns syslog and messages and with what permissions?

Quote:
Also, I don't understand about calling he wpa-supplicant. I have heard of it, but don't know anything about it.
This may be the root of the problem. The normal wireless tools like iwconfig, only deal with WEP, not WPA encryption. Basically, you can't set a WPA key with iwconfig. Instead, you have to install a program called wpa_supplicant which actually handles the encryption end of things. If you are using a stock Mandriva kernel, I would look and see if there is an RPM that will work with the ipw2200 driver. Otherwise you are going to have to compile this from source.
 
Old 03-23-2006, 12:28 AM   #8
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
This is my /etc/rc.d/rc.wireless.conf:

# Wireless LAN adapter configuration

VERBOSE=1

case "$HWADDR" in

00:90:96:xx:xx:xx) # The MAC address of my WiFI NIC
INFO="Broadcom WLAN 802.11g on Laptop" # Initialisation message
ESSID="YOURSSID" # SSID goes here
CHANNEL="1" # Channel goes here
MODE="Managed"
KEY="YOURWEPKEY" # Your 10 character 64bit HEX WEP key goes here
;;
esac

On my Linksys WRT54G router, when I go to enter a WEP key when configuring WEP, it converts it to 4 64bit 10 character HEX keys. I enter the first of the four keys into in the line above.

Alternatively, you can do from the command prompt:

iwconfig wlan0 essid YOURSSID
iwconfig wlan0 key YOURWEPKEY open
iwconfig wlan0 channel YOURCHANNEL
iwconfig wlan0 mode managed

Then, I do:

dhcpcd wlan0 -s 192.168.1.101

to get dhcp running (but statically assigning that IP) - DHCPCD does other things than just assign an IP.

To get WPA working, I think that you need tol get this working first, then configure WPA_Supplicant, and then switch the router over to WPA. You'll need a wired connection to manage the router during this...
 
Old 03-27-2006, 02:44 PM   #9
pchw
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Well, I actually did get WEP to work except it wouldn't hold the restricted settings on the wireless connection portion of the control panel. It would say it was restricted in the network configuration portion of the control panel, but whenever I changed it in the wireless connection portion and told it to connect, it jumped back to open wep. ALSO - the wireless connection kept disconnecting. The only way I could get it to start working again was to reconfigure the wireless connection. Strange indeed. I once again tried to set up WEP in the windows interface, but like linux not working with wpa, windows didn't work with wep. I will try to learn more about the wpa supplicant and see if that might work, but I am just about ready to give up.
 
Old 03-28-2006, 11:02 AM   #10
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
Don't use that KDE applet...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless-G and WPA encryption ?? lawadm1 Linux - Wireless Networking 1 06-19-2004 05:03 PM
wireless encryption DavidPhillips Linux - Security 10 12-07-2003 05:47 PM
Wireless Encryption gobits Linux - Newbie 1 09-16-2003 08:15 PM
wireless encryption ematrixxx Linux - Newbie 3 08-18-2003 06:42 AM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration