LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-17-2007, 06:02 AM   #16
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15

I think I will try and get it working with WEP encryption first and then tackle the heady heights of WPA.

Wish me luck
Thanks for everyones help
 
Old 05-17-2007, 09:39 AM   #17
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15
Right well i'm currently on linux while typing this, using WEP encyption - which is nice.

However, Firefox is behaving oddly...for the vast majority of web addresses it works, but for some results from Google and for example www.thinkwiki.org - it keeps saying it cannot find the server.

So either the server is actually down or something is going wrong?
Any ideas? I thought maybe its my security policy but I haven't blocked anything specifically.
 
Old 05-17-2007, 10:17 AM   #18
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
No the site is up, check your /etc/resolv.conf file some times it is best that it reflects the nameserver information for your ISP (the same as the wireless router uses), example;

nameserver XXX.XXX.XXX.XXX
nameserver XXX.XXX.XXX.XXX
nameserver <your wireless router internal IP address here>
 
Old 05-17-2007, 10:30 AM   #19
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15
How bizarre...I just did all of the stuff to use WPA-PSK encryption and I didnt really know if it had worked because when I ran
./wpa_supplicant -d -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1 -Dwext

it would freeze when it got to:

EAPOL: startWhen --> 0

and I would have to terminate it...so I try it with:

./wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1 -Dwext

and it seems to work, then I:
./ifup eth1

and it works...so I try one of the websites in question, and that also works - having not changed anything in resolve.conf!?

I think I have cracked it!!

Will I have to run that wpa_supplicant command everytime I start up or can I write a script to do it or will it be done automatically?

EDIT: Okay just realised that the majority of the other websites don't work lol, weird...is there a way I can find the IP address of my router from linux or will I have to log into the router?

Last edited by woodpecka_04; 05-17-2007 at 11:01 AM.
 
Old 05-17-2007, 11:08 AM   #20
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Check around in the /etc/wpa_supplicant directory, you should find something!!

You can try: netstat -r
 
Old 05-17-2007, 11:20 AM   #21
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15
netstat -r gives me:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1

So many numbers which do I choose??? I have tried adding the 192 addresses to resolv.conf because I am pretty sure they are for my router. However, it hasn't made any difference.

Last edited by woodpecka_04; 05-17-2007 at 11:43 AM.
 
Old 05-17-2007, 12:51 PM   #22
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
The 192.168.0.1 is your wireless router, like i suggested add the nameserver info for yor ISP in /etc/resolvf.conf. Yes you can get this info from your router.
 
Old 05-17-2007, 01:23 PM   #23
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15
Okay I have added that address to revolv.conf, however things seem to be quite random.

Different websites load when I connect different times.

Also certain websites don't display in the right way its like they have their style sheets off (when they are on).

Hmmm its all a little confusing

When I did ./ifup eth1, sometimes I got failed and other times it said failed no cable and then it just worked. I checked my dmesg...

ADDRCONF(NETDEV_UP): eth1: link is not ready
ndiswrapper (iw_set_freq:384): setting configuration failed (00010003)
eth1: no IPv6 routers present
ADDRCONF(NETDEV_UP): eth1: link is not ready
ndiswrapper (iw_set_freq:384): setting configuration failed (00010003)
ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
eth1: no IPv6 routers present

I don't know if I have a setting wrong somewhere or what but things are not working as they should
 
Old 05-17-2007, 01:59 PM   #24
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15
I have just noticed a file:
/etc/sysconfig/wpa_supplicant

which reads:

# wlan0 and wifi0
# INTERFACES="-iwlan0 -iwifi0"
INTERFACES="-iwlan0"
# ndiswrapper and prism
# DRIVERS="-Dndiswrapper -Dprism"
DRIVERS="-Dndiswrapper"

Both of these attributes do not seem appropriate for my setup. Do you think it may be this thats causing a problem?
 
Old 05-19-2007, 01:57 AM   #25
pappy_mcfae
Member
 
Registered: Feb 2007
Location: Dallas
Distribution: Gentoo x86 & x86_64
Posts: 190

Rep: Reputation: 30
Post If I may suggest...

From reading the problems you are having, I am willing to bet your problem resides in your setup for wpa_supplicant. Either that, or you are not specifically assigning an IP address to your wireless adapter once it is actually "on line". It took me about a week to get my wireless adapter (a Broadcom bcm43xx chipset adapter in a Compaq Presario C504US) up and working. The hardest, trickiest part was getting wpa_supplicant to work properly.

I created a file that contains all the steps I took to finally get things operating properly. While I did it under Slackware, I'm sure with a little creative thinking, you can re-write it a bit to work with your distribution. the URL is: http://www.linuxquestions.org/questi...d.php?t=550053

I hope that helps. I know that now my wireless adapter works properly. Not only can I surf the net, and jam on my favorite Internet radio station, I can also use samba to share files with the other Slackware machine and the Windoze machines on my LAN as well. You could say I got it working properly.

Please let me know if the document is helpful.

Blessed be!
Pappy
 
Old 05-19-2007, 06:55 AM   #26
woodpecka_04
Member
 
Registered: May 2007
Distribution: Fedora Core 6
Posts: 47

Original Poster
Rep: Reputation: 15
The problem was my DNS settings in the end, there was one little box I hadn't ticked in system-config-network that was causing me all the trouble.

Thanks to one and all who helped me with this problem.
 
  


Reply


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
trying to install ndiswrapper on fc6 prn Linux - Wireless Networking 2 04-16-2007 02:26 PM
prob with ndiswrapper on FC6 valaskialf Linux - Wireless Networking 1 02-08-2007 02:19 PM
Ndiswrapper on FC6 Sam Liu Linux - Wireless Networking 32 12-05-2006 12:45 PM
ndiswrapper Fedora FC6 Intel 3945ABG problem (not showing) dayeliu Linux - Wireless Networking 2 11-26-2006 12:21 AM
From one problem to another, ndiswrapper, FC6 THOR_Fedora Linux - Wireless Networking 9 10-29-2006 08:48 AM


All times are GMT -5. The time now is 09:03 PM.

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