WPA2 network; ndiswrapper wireless; Ubuntu 9.04; have to reset router to get online
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
WPA2 network; ndiswrapper wireless; Ubuntu 9.04; have to reset router to get online
Hi, all. I've been having a network problem that I've been able to temporarily solve by rebooting the router, but even that can be shaky at times, and it can sometimes disturb others' internet activites, so I'd really like to tackle this while I can. I had an old thread about this, but it's ancient history by now, and plus which, I've got a bit more Linux experience and patience than I did before.
The basic problem is that NetworkManager will associate and connect to my home wireless network, but a) it won't let me ping the router or anywhere else ("Destination Host Unreachable"), and b) the connection lasts for maybe a couple minutes at most. If I reset the router, however, 9 times out of 10 it will associate and connect successfully and I can get online, but I have to run a constant ping to the router with a 10-second interval, otherwise it drops the connection, unless I'm doing a lot of other heavy network activity.
ping 192.168.1.1 (the router):
Code:
mrcode@linuxbox:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.4 icmp_seq=1 Destination Host Unreachable
From 192.168.1.4 icmp_seq=2 Destination Host Unreachable
From 192.168.1.4 icmp_seq=4 Destination Host Unreachable
From 192.168.1.4 icmp_seq=5 Destination Host Unreachable
From 192.168.1.4 icmp_seq=6 Destination Host Unreachable
From 192.168.1.4 icmp_seq=7 Destination Host Unreachable
From 192.168.1.4 icmp_seq=8 Destination Host Unreachable
From 192.168.1.4 icmp_seq=10 Destination Host Unreachable
From 192.168.1.4 icmp_seq=11 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
13 packets transmitted, 0 received, +9 errors, 100% packet loss, time 12063ms
, pipe 3
I've tried wpa_supplicant, but this is what I get (it's apparently unsuccessful...? ESSID/MAC addresses censored where necessary):
The last prompt line is included because I cancelled it myself; it didn't abort on its own. If left unmonitored, it basically keeps doing this over and over, with no visible network activity at all.
With NetworkManager, I can keep selecting the network's ESSID over and over, and it seems to reconnect, but I still can't ping out anywhere. I'm using a Netgear WN111v1 wireless adapter with ndiswrapper and the Windows drivers. I have no idea what the chipset is, and I doubt that Linux drivers exist for it, even if I knew what it was. The router is using WPA2 security (hence my trying wpa_supplicant)
lsusb:
Code:
root@linuxbox:/home/mrcode# killall wpa_supplicant
root@linuxbox:/home/mrcode# lsusb
Bus 001 Device 006: ID 0d49:7212 Maxtor
Bus 001 Device 003: ID 0846:9000 NetGear, Inc. RangeMax NEXT Wireless-N Adapter WN111
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ifconfig wlan0 (while connected; IP/MAC addresses censored where needed):
I only include this for format checking purposes. The commented out "psk" is the actual text passphrase, while the uncommented one is (presumably) a hex representation of the same key. Is this correct? I've never done this with wpa_supplicant before, I've only used NetworkManager (which is a pain in the @$$ because it requires X to run, and so it disconnects any time I log out/back in ).
Is there any hope of getting my wireless connection permanently working, so that I don't have to reset the router every time I need to reboot or log out/back in?
I apologize if this was a long read, but I wanted to make sure I was giving enough info to help diagnose the problem.
Just going to basics, is there any chance another device is clashing with you on the same IP? Is it possibe your firewall settings are blocking the outbound ping?
is there any chance another device is clashing with you on the same IP?
I don't think so. There are only two wireless connections sharing the same router: my desktop (192.168.1.4) and a Windows 7 laptop (192.168.1.2). There is also another desktop machine with a direct wired connection to the router (192.168.1.3).
Quote:
Is it possibe your firewall settings are blocking the outbound ping?
I'm not sure what you mean; the iptables settings on my computer, or the router's settings? I think the only setting I've enabled in iptables is to do packet forwarding/NAT on a wired interface to my other desktop running Arch. I think it goes as 192.168.1.5 from the router's perspective, but it's known locally from Ubuntu's perspective as 192.168.0.2, if that makes any difference.
It's static. I really would like to know how to (properly) use wpa_supplicant, rather than NetworkManager. I've read the man page, and that's how I came up with the first command, but if I try it with the "-D ndiswrapper" option, I just get "Unsupported driver 'ndiswrapper'.", even though the man page says it's a driver option.
Next, please, check if "wpa_supplicant" is loaded and works:
ps -A | grep wpa_su
If you will see in an output PID for "wpa_supplicant", do: kill -p <PID>.
Then, make sure that wireless interface is UP, do: ifconfig wlan0 up
Then open root console and type to execute "wpa_supplicant", like:
I think the problem is that it's trying to use the "wext" driver, and it's not working with the adapter. I'm not sure, though; I'm just guessing based on the output of the first command.
I also changed the /etc/wpa_supplicant.conf file to read like:
Okay, so ndiswrapper isn't there. How would I go about adding it, then? I know I have it (and the Windows drivers) installed, because they work with NetworkManager.
Also, spaces vs. no spaces doesn't seem to make a difference:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.