LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-02-2009, 07:42 PM   #1
Dan.b
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
Arrow Why can I see wireless networks but never connect, WPA/WEP or open?


I am fairly new to linux, I getting to grips with the offline and I am starting to be converted. The major problem I have is that I cannot get it to connect to my wireless network. I am using Fedora and my wireless card is the Belkin Wireless G Desktop Network Card - F5D7000uk (version 3000uk).

I am able to see the network and pick up the essid automatically through networkmanager or iwlist scan.

I have tried to connect using Network manager;
- it picks up the information and I submit my WEP key and the icon top right shows two green dots with a blue flame(?) rotating between them for a few minutes before asking for my key again.

and using the terminal commands.

Code:
$ sudo iwconfig wlan0 mode managed
$ sudo iwconfig wlan0 essid "BTHomeHub3-12GT"
$ sudo iwconfig wlan0 key 563865428
then tried to test the connection using

Code:
$ sudo ping www.bbc.co.uk
ping: unknown host www.bbc.co.uk
Code:
sudo iwconfig wlan0
wlan0     IEEE 802.11bg  ESSID:"BTHomeHub3-12GT"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=20 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
If anyone can give me any help it would be greatly appreciated!

Dan

Last edited by Dan.b; 09-02-2009 at 07:51 PM.
 
Old 09-02-2009, 07:59 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Look at /sbin/ifconfig. If you have an IP address for the wireless interface, it isn't a wireless problem. You need to either use DHCP or configure the IP, default gateway and DNS addresses manually.

The DHCP client should update the /etc/resolv.conf file with your ISP's DNS address. It is also possible that your router masquerades as a DNS server but doesn't function properly as one. If that is the case, try manually adding two OpenDNS servers manually to the router's configuration.
 
Old 09-02-2009, 08:33 PM   #3
Dan.b
LQ Newbie
 
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal View Post
If you have an IP address for the wireless interface, it isn't a wireless problem.
Code:
$ ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:11:50:14:E3:1C  
          inet6 addr: fe80::211:50ff:fe14:e31c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:65 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2782 (2.7 KiB)  TX bytes:3816 (3.7 KiB)
Does this mean it is a wireless problem? Thanks awefully for your help.
 
Old 09-03-2009, 11:43 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
There are three parts to getting wireless networking working.

Firstly, you need the kernel driver for your device. Sometimes you need to cut out binary blobs or wrap a driver written for windows for some drivers. When this is successful, you can detect other APs.

Next you need to be able to "supplicate" with the router, joining the wireless network. This is where WEP or WPA come in. You can't communicate with the DHCP server before you join the network. For this to be successful, wpa_supplicant needs to be configured. This might be done manually, by ifup scripts or on the fly by a network manager.

Lastly you need to configure your network. Often this means that the DHCP server supplies you with an IP address, default gateway address and name server address.

Not having an IP address, could be a failure in supplicating or in not configuring your device to use DHCP yet not configuring it manually.

Here is a command to see if the wpa_supplicant process is running:
ps -e | grep wpa_supplicant

This command will print out the command line used to launch it:
ps -fp $(pidof wpa_supplicant) | cat

If you don't have the pidof command, use the result of the first command as in "ps -fp 112354"

root 2844 1 0 15:25 ? 00:00:00 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log

My result shows that wpa_supplicant is running, the config file used, and where the results are being logged. I could run:
sudo tail -f /var/log/wpa_supplicant.log
and then try joining a network to monitor if wpa supplication is successful. Another program "wpa_cli" can be used at times, but not if you use networkmanager. You could also run "sudo tail -f /var/log/messages" to monitor kernel messages. wpa_supplicant and your network manager may log kernel messages as well.

Last edited by jschiwal; 09-04-2009 at 12:03 AM.
 
  


Reply

Tags
fedora, linux, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network manager unable to connect to unsecured wireless - WPA networks fine :S phyre-x Ubuntu 8 05-16-2011 11:11 AM
USB WiFi / Ubuntu 9.04 / Connects to non-secure networks but not WEP/WPA FastFeet Linux - Wireless Networking 6 05-22-2009 04:57 AM
how i connect in wireless networks ? hatebreeder666 Linux - Newbie 2 01-03-2009 04:11 PM
linux WPA/WEP wireless m2azer Linux - Wireless Networking 6 07-18-2007 04:21 PM
NM works open but won't connect when WPA on Feelin' Fine Linux - Wireless Networking 1 06-07-2007 10:58 PM


All times are GMT -5. The time now is 01:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration