[ubuntu] have to reset router to get net connection
Hello, all. I'm still kind of a linux newb, so I might just be missing a little bit of knowledge here, but I've been having some real problems getting my machine to connect to my wireless network under Ubuntu 9.04.
Here are my basic specs: Intel® Pentium™ 4 CPU @2.66 GHz 1.5 GB RAM 3 HDDs: 1 40GB Maxtor internal, 1 320GB WD internal, 1 160GB Maxtor USB external. OSes: Windows XP Home Edition (on Maxtor internal drive) Ubuntu 9.04 (on WD internal drive) I don't think my video card would make any difference, so I won't list it on here... Anyway, what happens is I try to connect (I select the network SSID from the pull-down list in the NetworkManager panel menu), and it seems to connect okay to the router, but I can't get out to the net. I can pull up a terminal and ping the router's address, but I get a "Destination Host Unreachable" message. It's as if, to the computer, the router isn't even there on that level, but it can still somehow connect to it. Now, here's the strange part. If I reset the router from another (Windows) computer on the network (specifically, the one with a wired connection to it), then I can connect just fine and I can get out to the internet. Is this a known issue? Has anyone ever experienced the same/similar problem? If so, and you know how to fix it, please post it here. Even if you don't know specifically, but have some good ideas as to what might work, that's fine too. I hate having to do this every day, as it affects everyone's internet connection. Granted, it's not like I'm in a strict business situation with tons of machines and multiple access points, but there are 3 of us in the house and we all share internet access from the same router (as I'm sure most people do), and I feel kind of guilty having to interrupt everyone's connection, if even only for about 30 seconds just so I can get a net connection under Linux. Windows connects to the router/internet just fine, btw. No problems there. I'm also using a NetGear WN111 USB wireless adapter, with the Windows drivers under ndiswrapper. All else seems to work fine, except for the issue mentioned above. |
Just some thoughts :
Is the gateway set correctly? Do you use DHCP? What is the output from Code:
iwconfig Code:
route -n Try to use wicd, networkmanager is buggy. |
iwconfig:
Code:
lo no wireless extensions. Code:
Kernel IP routing table By the way, the ESSID isn't really a bunch of stars, i've just omitted it... |
Quote:
Did you tried wicd ? |
Quote:
Some of your other symptoms lead me to believe that this isn't what's going on (I'm guessing that an IP address conflict probably wouldn't give you a "Destination Host Unreachable" message, usually it just confuses the hell out of the two hosts with the same IP address). Nonetheless, always good to check the basics. I'm also a little concerned that you can't connect via DHCP to begin with. That just sounds wonky to me. I'm not sure whether that's a symptom or a cause of what ails you, but it ain't right. |
I've tried wicd in the past, but it didn't seem to make any real difference. As far as re-connecting the wireless on my end (I presume you mean on my end), at first I thought that was the problem, and so I was practically banging my head against the wall trying different ways of configuring the connection (DHCP, no DHCP, DHCP addresses only, different IP addresses, etc.). Re-connecting on my end with any configuration doesn't seem to do any good as far as I can tell...
Sorry if I seem like I'm shooting you down, I don't mean to offend. Perhaps I should have included this info in my first post. EDIT: Ah, it seems someone posted before me. I'll try again with DHCP tomorrow, when I know I'll have to deal with the problem again (I'd rather not do it now and have to inconvenience others in the house). It has been a while since I tried it last... As far as IP addresses are concerned, our addresses are in the 192.168.1.x range, with the router at 192.168.1.1, and my computer at 192.168.1.4. I don't think any of the other machines have the same address as any others. |
Quote:
|
Quote:
Anyhow, I tried DHCP again eariler today and it did the same thing that it always has done...it'll appear to be attempting a connection, and I'll see little "blips" of network activity on my system monitor applet, and then after a while it'll disconnect me. I'm guessing the little "blips" are the machine trying to talk to the router, but the router's not replying. Just to see if maybe it'll help diagnose the problem (maybe?), I'll post the output of running "ping 192.168.1.1" while resetting the router (I always do this to make sure that it's connecting properly): Code:
... |
Quote:
|
Thanks for the command, blackhole! I think tcpdump may be what I need. I'm not sure if it'll help when my real problem arises, but I'll definitely try looking at it tomorrow when I try connecting again. I figured there must be some way of viewing the communications between the local computer and others on the network (or the Internet)...
|
Okay, here's the output of "tcpdump -i wlan0 -v" while on a "bogus" connection as root:
Pastebin entry This was done while a ping to the router was running and spitting out screenfulls of "Destination Host Unreachable" messages. Also, as a note, it will *sometimes* connect on its own after a while, as it did today... Not sure how, though. From the looks of the output, would anyone say this could just be a signal strength issue? That could very well be the case, as the signal strength does tend to vary a little between 50% and 60% while I'm connected, whether it's "bogus" or not. Although I have tried using a USB extension cable and moving the adapter around, and it doesn't seem to do much good for the signal strength... |
So, does anyone have any ideas? I apologise for the bump, but it's been a while since anyone has responded...
Or perhaps this is now a "homework issue", and that's why I'm not getting any responses? |
Sorry, I didn't manage to check into LQ yesterday ...
Quote:
Here is my analysis of the output from tcpdump:
I see you also have MS Windows on that computer. Does it exhibit this same problem? (While, TMK, you can't use tcpdump on MS Windows, Wireshark is cross platform if you want to do packet sniffing there.) EDIT: I believe I was wrong when I said attempts to connect to other computers on the LAN would result in network unreachable. For LAN computers (as opposed to the Internet), the ARP request should be for the computer's MAC address, not the router's. If that was not forthcoming, it should still be destination host unreachable |
Thanks for the info. I've got that Wikipedia page on EAP pulled up as I write this post, so I'm definitely looking into the issue. As for Windows, I don't have any problems there...it connects and has internet access right from the get-go. When you install the drivers for the adapter, it installs proprietary connection manager software along with the drivers themselves (though you can opt to use the Windows Wireless Zero config utility... I chose not to do so).
So if the system can't find the router MAC address, does that mean that I need to enter it manually somewhere? I see a spot to enter a MAC address in the "Edit Connections" dialog when I select my wireless network; I'm guessing this is where I'd put it. I'll try finding the MAC address of the router manually (there's probably a sticker on the router somewhere that has info like serial number, MAC address, default password, etc.) putting it there, and reconnecting tomorrow. EDIT: I found an alternate resource on those EAP codes. It would appear that the machine is requesting authentication (code=1) and getting a response (code=2), but it doesn't seem to be getting proper authentication (code=3). However, it doesn't seem to be failing, either (code=4). If that's the case, then maybe entering the MAC address manually won't do anything...? |
I think that I'd like to see the output from Wireshark on windows as well. It would be interesting to know what's happening with EAP on the windows side.
Also, the MAC address should stay constant booting between Windows and Linux; I would be interested to know if there's something different going on while ARP/DHCP are being established... that reminds me: are you using DHCP at this point, or are you still using a static IP address? |
All times are GMT -5. The time now is 01:02 PM. |