LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-07-2009, 11:04 AM   #1
dreadnyah
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Rep: Reputation: 0
using ndiswrapper can ping wireless access point but no internet


Please help, I've been wrestling with this for a couple of weeks now without success.

The situation:
I'm using a Prism54 USB adapter (Linksys WUSB54AG) under Xubuntu 8.10, kernel 2.6.27-7. I've configured the card to start at boot with WEP and static ip using /etc/network/interfaces and /etc/rc.local. The configuration seems OK because when I use the native linux p54usb driver I can connect to router and internet automatically. The problem with the native driver is that it drops the connection constantly- I believe that it drops the connection whenever the signal strength goes below about 50%. Using the Wavelan plugin in XFCE4 I can see that the connection drops once the signal strength goes below 3 bars. This happens constantly because I live in a small apartment block and the router is in the owner/manager's apartment. Using ndiswrapper and the windows driver the connection stays up down to 2 bars.

The problem:
When using the ndiswrapper'd windows driver with the identical configuration (and blacklisting all the native driver files in /etc/modprobe.d/blacklist and loading ndiswrapper with /etc/modules) the adapter connects properly to the access point and associates with it automatically. I can ping the router but cannot get onto the internet. I checked the output of route and did not see the default gateway (although it is setup in the interfaces file and picked up automatically by the native driver). I added the default gateway using the route add command and then route shows the gateway - but I still can't ping anything beyond the router. Ping outputs that "The network is unreachable". I've tried URL's eg. www.google.com and IP addresses eg. xxx.xxx.xxx.xxx to see if it might be related to the DNS, but can reach neither format of address so, at least in the first instance, the error is not to do with the DNS. I also tried disabling ipv6 using the aliases file but that didn't work either

The questions:
1) Is there any way to make the native p54 driver hold the connection down to relatively low signal strengths?

2) Does anyone know what I should do to make the ndiswrapper'd windows driver access addresses beyond the router, i.e. connect to the internet.

Regards

dreadnyah

PS: Please, no trite answers like get my own internet connection (not allowed), or get another adapter or bridge (can't afford).
 
Old 04-07-2009, 02:04 PM   #2
dreadnyah
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Original Poster
Rep: Reputation: 0
UPDATE:

On one reboot a short while ago (one of many today) with ndiswrapper and the windows driver loaded and the identical config as described above (ipv6 enabled system-wide but disabled in Firefox) it connected to the internet for a split second and downloaded one page very quickly then the network became unavailable once again.

I am at a complete loss as to what could cause any of this - someone please help.

Regards
dreadnyah
 
Old 04-07-2009, 03:19 PM   #3
dreadnyah
LQ Newbie
 
Registered: Mar 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Solved

OK - I've finally solved this - I'm using the ndiswrapper'd Win driver and can now connect to the internet. It was a route problem after all. I was stipulating the netmask as 255.255.255.0 when adding the default gateway with the route add command. I noticed that when using the native driver the output of route showed that the genmask of the default gateway (the router) was 0.0.0.0 - I decided not to specify the netmask in the route command and all is now well. For those who may be interested - the command I used is:

route add default gw 192.168.xxx.xxx wlan0

replace the xxx.xxx with the details for your router.


I've now put that command as the last line (before exit 0) of my /etc/rc.local script and the network starts automatically at boot, holds the connection at lower signal levels than the native driver and automatically updates the kernel route table with the route to the default gateway so I can get on the net as soon as I login.

Regards

dreadnyah
 
  


Reply

Tags
ndiswrapper, prism54, usb, 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
Slackware Wireless PCI Card Access Point, shared internet via DHCP NIC orbit Slackware 4 10-13-2008 02:42 AM
ping via WLAN and Access Point lpoorman Linux - Wireless Networking 11 05-19-2006 11:37 AM
Ndiswrapper for internal wireless No internet but can Access Router slag02 Suse/Novell 1 04-01-2006 02:21 PM
Linksys WUSB11 v2.6 - Able to ping Access point but nothing beyond shepper Slackware 8 03-25-2005 02:25 AM
not able to ping from my wireless card to my access point tonybhullar Linux - Wireless Networking 0 03-05-2003 02:56 PM


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

Main Menu
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