You are not logged in.

#1 2009-02-24 20:36:31

Frantic
Member
Registered: 2009-01-22
Posts: 32

Wireless routing trouble

I just installed arch on my new desktop PC, among a series of trouble this is my last one that I cannot find a way to resolve.

Once every hour to once very few minutes, with a duration of under 2-3 minutes, my box will refuse to send stuff to the gateway (which is also the access point I use), but still send stuff to the other computers thru the same access point.

I got to this conclusion after starting 3 pings in background: router, intranet computer, external host (yahoo.com).
When this weird phenomenon occurs, I will get replies form the intranet computer, but not from the other 2 pinged hosts.

I am sure it's not a router issue because I have also ran these 3 ping scenarios on a machine connected by ethernet and on my laptop (arch, same wireless configuration as the PC with the problem, except that it's a iwl3945 driver), both work fine in the same time my desktop PC fails.

Another weird thing I have noticed, is that when I get these timeouts, if I do a "sudo route", it will print my subnet route, but hang before printing my other route (the one with the gateway). (Just to be clear, this only happens while I get the timeouts. After the normal operation resumes, route will finish the output instantly). This hang can be upto a minute.

There is nothing new in /var/log/messages during this phenomenon.
I have also noticed that if I restart the wpa_supplicant process, the timeouts occur less often for an hour or so.

Does anyone know what's causing this?

Here's my "route" output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 wlan0
default         192.168.100.1   0.0.0.0         UG    0      0        0 wlan0

I have the following wireless card:

03:01.0 Network controller: RaLink RT2561/RT61 802.11g PCI
        Subsystem: RaLink EW-7108PCg
        Flags: bus master, slow devsel, latency 32, IRQ 22
        Memory at f9ff8000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>
        Kernel driver in use: rt61pci
        Kernel modules: rt61pci

I use it to connect to a WPA2-PSK wifi (hidden ssid, AES encryption).
I connect to the wireless with the following script:

wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_<wifiname>.conf -dd &
dhclient wlan0

Here's the .conf I use:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=1
update_config=1
network={
    scan_ssid=1
    ssid="<the_ssid>"
    psk=the_wpa_key
}

This works. Lan is up, inet is up.

Last edited by Frantic (2009-02-25 17:48:36)

Offline

#2 2009-02-25 13:06:29

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

noone? sad

Offline

#3 2009-02-25 17:49:42

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

hmm quakelive is out, windows only, and my wifi is failing in linux.. if I think about it, vista is not so bad smile

Offline

#4 2009-02-26 01:54:41

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: Wireless routing trouble

When route hangs for me, it normally means I'm having connection issues of some sort, and route can't actually find the default gateway on the network (apparantly it does check to make sure it's there somehow).
When this happens to you, does your connection eventually start working again, or do you just have to shut it down and connect again? Are there other wireless networks in the area running on the same channel as yours?
Do you have another network adaptor that could be coming online somehow and gumming things up (if it comes online, it'll show up when you run `ifconfig` with no arguments)?

Offline

#5 2009-02-26 02:17:02

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

Yep, there are actually a lot more computers running on that same AP.
When I was checking to make sure it's not a problem with the router I used the troublesome PC, my laptop and a intranet server over SSH. There are alos 10ish computers running at the same time on that same intranet at the same time.

What happens to me is that I can access anything else on the intranet except the gateway.
I don't have to restart it, it will eventually fix itself, but I noticed that if I do restart wpa_supplicant it will get fixed instantly and I get a lot less trouble for a short while.

I do have the ethernet NIC that is up but idling, now that you mentioned it, it's up and running, but no wire, might be that causing the trouble.
What I have tried was to negate both interfaces in rc.conf (!wlan0 !eth0), this didn't help. I'll also try doing a ifconfig down eth0.

Funny thing is that I'm running the same configs on my laptop, eth0 up, connecting thru wlan0, same apps, no special configs I know of, working right.

Offline

#6 2009-02-26 02:22:41

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: Wireless routing trouble

If you check `dmesg | tail` or /var/log/everything.log while you're having trouble, are there any messages about the wireless driver losing it's connection or anything?
I'm not sure where to go from here because I've never touched the RaLink driver. Does your laptop also use it?

Offline

#7 2009-02-26 02:25:42

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

My laptop uses iwl3945 sad.
I have checked dmesg and everything.log, nothing new there when this happens or when it recovers.
I've also checked the wpa_supplicant output (it occasionally does "rekeying" whatever that is, but it doesn't coincide with the periods of trouble).

Offline

#8 2009-02-26 02:27:13

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: Wireless routing trouble

This may not be possible because your AP is being used by a bunch of other computers, but if you disable WPA, does everything work consistently?

Offline

#9 2009-02-26 02:31:26

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

Even if I find out it will work without encryption, it still won't be of much help because I need to use it with wpa smile

But I'll try that, I have to get it alone when noone else needs to use it, sometimes my problem doesn't show for like an hour.

Mean while if you have any other ideas please go ahead and let me know smile

Offline

#10 2009-02-28 16:37:29

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

zzzZZZZ

Offline

#11 2009-02-28 22:08:48

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: Wireless routing trouble

I don't really have anything else you can try, except maybe installing compat-wireless and trying that. I'm pretty sure the wpa_supplicant package is the latest version...

Offline

#12 2009-03-01 08:23:36

ao
Member
From: 青
Registered: 2008-02-02
Posts: 16

Re: Wireless routing trouble

"it will print my subnet route, but hang before printing my other route (the one with the gateway)."

I've found this is the case when DNS is not working.  Try "route -n" and/or pinging the IP of yahoo.com continuously, versus the domain?

Hope it helps smile

Offline

#13 2009-03-01 17:28:43

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

Yep, route -n was working, so I added my gateway to /etc/hosts, now route works instantly, but the routing still doesn't work.

Offline

#14 2009-03-08 14:37:54

lymphatik
Member
From: Somewhere else
Registered: 2009-03-07
Posts: 119

Re: Wireless routing trouble

Did you figured out how to solve this? Because I have to ping atleast 3 or 5 times google.com to get internet.

Offline

#15 2009-03-08 15:56:53

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Wireless routing trouble

Offline

#16 2009-03-08 17:36:50

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Wireless routing trouble

nope, I haven't figured it out yet

kgas: that thread doesn't help sad

Offline

Board footer

Powered by FluxBB