Re: WLAN troubles
On Thu, 28 Aug 2008, -stacy wrote: > When I was playing with the WLAN on the FreeRunner (about a month ago) I > ran into an issue where my AP thought the FR was in power saving mode > even though the FR didn't think so (or at least iwconfig said it was > off). If I issued a > # iwconfig eth0 power off > > that would fix it. That indeed did the trick - how peculiar. What was even weirder is that I tried it at work today with a fancy new WPA2 accesspoint, and it was working fine there as well. Thanks! Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
When I was playing with the WLAN on the FreeRunner (about a month ago) I ran into an issue where my AP thought the FR was in power saving mode even though the FR didn't think so (or at least iwconfig said it was off). If I issued a # iwconfig eth0 power off that would fix it. That was with 2007.02 and I haven't tried WLAN with anything more recent. -stacy ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
On Wed, 27 Aug 2008, Jim Morris wrote: > Derick Rethans wrote: > > > > I do, and that's the weirdest part - the rx packet count increases too > > even. I also checked whether it could be a broken resolver, but pinging > > to an IP adres doesn't work either. > > Check your AP's firewall is not blocking TCP/IP from the FR, or any > other firewall you may have. Also check the routing upstream of your > AP and make sure it can route back to the FR. > > If you have mac address filtering enabled on the AP it may also cause > problems, although I suspect that is not the case as you do get DHCP > responses. It's so ancient, I doubt that it even supports any blocking or filtering. I've not had any issues with any other WLAN device (or that of my friends), so I'm pretty sure there are no issues here. regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
Derick Rethans wrote: > > I do, and that's the weirdest part - the rx packet count increases too > even. I also checked whether it could be a broken resolver, but pinging > to an IP adres doesn't work either. Check your AP's firewall is not blocking TCP/IP from the FR, or any other firewall you may have. Also check the routing upstream of your AP and make sure it can route back to the FR. If you have mac address filtering enabled on the AP it may also cause problems, although I suspect that is not the case as you do get DHCP responses. -- Jim Morris, http://blog.wolfman.com ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
On Wed, 27 Aug 2008, Al Johnson wrote: > On Wednesday 27 August 2008, Derick Rethans wrote: > > On Wed, 27 Aug 2008, Al Johnson wrote: > > > On Tuesday 26 August 2008, Derick Rethans wrote: > > > > I received my freerunner last weekend, and liking it sofar. I've had a > > > > play with wifi - and although the freerunning sees the networks just > > > > fine (with iwlist eth0 scan) and I can connect to the network as well - > > > > I get a DHCP lease, with nameservers and all, the route is correct too. > > > > However, I can't do any sort of connection - nor ping. I've looked > > > > around on the wiki and list archives, but I can't find why it is not > > > > working. Does any of you have any hint at were to look at to debug this > > > > issue? > > > > > > As others have said, the problem is probably routing. If both usb0 and > > > eth0 are on the same subnet then you will have problems. you can fix it > > > by fiddling with the routing, but it is probably easier just to use > > > 'ifdown usb0' before you start the wifi connection, and 'ifup usb0' when > > > you need to use the usb connection, while the wifi isn't connected. > > > > I was pretty sure that the routes where okay - I did just double check > > and it's all fine: http://files.derickrethans.nl/Screenshot-5.png > > > > I've check that resolv.conf is correct (same as on the laptop that uses > > the same WLAN), but still no dice. It gets the IP address just fine > > through DHCP, but *no* packets go over the line - I can't even ping the > > gateway (though I can ping the device's IP). > > So if you ifconfig eth0 you don't see the tx packet count increasing? I do, and that's the weirdest part - the rx packet count increases too even. I also checked whether it could be a broken resolver, but pinging to an IP adres doesn't work either. regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
On Wednesday 27 August 2008, Derick Rethans wrote: > On Wed, 27 Aug 2008, Al Johnson wrote: > > On Tuesday 26 August 2008, Derick Rethans wrote: > > > I received my freerunner last weekend, and liking it sofar. I've had a > > > play with wifi - and although the freerunning sees the networks just > > > fine (with iwlist eth0 scan) and I can connect to the network as well - > > > I get a DHCP lease, with nameservers and all, the route is correct too. > > > However, I can't do any sort of connection - nor ping. I've looked > > > around on the wiki and list archives, but I can't find why it is not > > > working. Does any of you have any hint at were to look at to debug this > > > issue? > > > > As others have said, the problem is probably routing. If both usb0 and > > eth0 are on the same subnet then you will have problems. you can fix it > > by fiddling with the routing, but it is probably easier just to use > > 'ifdown usb0' before you start the wifi connection, and 'ifup usb0' when > > you need to use the usb connection, while the wifi isn't connected. > > I was pretty sure that the routes where okay - I did just double check > and it's all fine: http://files.derickrethans.nl/Screenshot-5.png > > I've check that resolv.conf is correct (same as on the laptop that uses > the same WLAN), but still no dice. It gets the IP address just fine > through DHCP, but *no* packets go over the line - I can't even ping the > gateway (though I can ping the device's IP). So if you ifconfig eth0 you don't see the tx packet count increasing? > Now I do remember that when upgrading my kernel it mentioned something > about wlan modules - but I do not remember the extend of those messages. If there was a problem with the modules I doubt you'd get a connection in the first place. > Any other ideas what the issue could be? I am still on 2007.7 - as how > it came with the phone, but I've opkg update & opkg upgrade'd it all > today. Any other ideas? > > regards, > Derick ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
On Wed, 27 Aug 2008, Al Johnson wrote: > On Tuesday 26 August 2008, Derick Rethans wrote: > > > > I received my freerunner last weekend, and liking it sofar. I've had a > > play with wifi - and although the freerunning sees the networks just > > fine (with iwlist eth0 scan) and I can connect to the network as well - > > I get a DHCP lease, with nameservers and all, the route is correct too. > > However, I can't do any sort of connection - nor ping. I've looked > > around on the wiki and list archives, but I can't find why it is not > > working. Does any of you have any hint at were to look at to debug this > > issue? > > As others have said, the problem is probably routing. If both usb0 and eth0 > are on the same subnet then you will have problems. you can fix it by > fiddling with the routing, but it is probably easier just to use 'ifdown > usb0' before you start the wifi connection, and 'ifup usb0' when you need to > use the usb connection, while the wifi isn't connected. I was pretty sure that the routes where okay - I did just double check and it's all fine: http://files.derickrethans.nl/Screenshot-5.png I've check that resolv.conf is correct (same as on the laptop that uses the same WLAN), but still no dice. It gets the IP address just fine through DHCP, but *no* packets go over the line - I can't even ping the gateway (though I can ping the device's IP). Now I do remember that when upgrading my kernel it mentioned something about wlan modules - but I do not remember the extend of those messages. Any other ideas what the issue could be? I am still on 2007.7 - as how it came with the phone, but I've opkg update & opkg upgrade'd it all today. Any other ideas? regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
On Tuesday 26 August 2008, Derick Rethans wrote: > Hello, > > I received my freerunner last weekend, and liking it sofar. I've had a > play with wifi - and although the freerunning sees the networks just > fine (with iwlist eth0 scan) and I can connect to the network as well - > I get a DHCP lease, with nameservers and all, the route is correct too. > However, I can't do any sort of connection - nor ping. I've looked > around on the wiki and list archives, but I can't find why it is not > working. Does any of you have any hint at were to look at to debug this > issue? > > regards, > Derick As others have said, the problem is probably routing. If both usb0 and eth0 are on the same subnet then you will have problems. you can fix it by fiddling with the routing, but it is probably easier just to use 'ifdown usb0' before you start the wifi connection, and 'ifup usb0' when you need to use the usb connection, while the wifi isn't connected. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
> On Wed, 27 Aug 2008, nickd wrote: > >> Joel Newkirk wrote: >> > Derick Rethans wrote: >> > >> >> I get a DHCP lease, with nameservers and all, the route is correct too. >> >> However, I can't do any sort of connection - nor ping. >> >> >> >> Try "ip r" and see if it lists two default routes - one out usb0 and one >> >> out eth0. If it does, try "ip r d default via 192.168.0.200" to delete >> >> the >> >> route pointing out usb0, and see if that resolves it for you. (Linux >> >> supports multiple default routes, but there should be a 'metric' >> >> specifying >> >> priority, or advanced custom routing tables to support multiple >> >> simultaneous uplinks - like load-balancing traffic on two DSL lines from >> >> one network) > > Yeah, I did this of course. Only one default route is left. > >> I've experienced the same thing as the OP. Running Windows as my hosts >> means it's a pain to set it up as a router, so I connect via Wifi and >> use it for everything. My solution is to put the following in my >> /etc/network/interfaces under eth0: >> >> up route del default gw 192.168.0.200 >> >> This will remove your computer as the default gateway and use the >> wireless one when the interface is brought up. Sometimes it fails so >> I've had to put it in twice (yet to look into this). > > Okay, I'll see if that does the trick then -- but I am sure I only had > one route left in the "route -n" output. You'll need 2 routes. One for the subnet your gateway is on and one default gw. Sander ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
On Wed, 27 Aug 2008, nickd wrote: > Joel Newkirk wrote: > > Derick Rethans wrote: > > > >> I get a DHCP lease, with nameservers and all, the route is correct too. > >> However, I can't do any sort of connection - nor ping. > >> > >> Try "ip r" and see if it lists two default routes - one out usb0 and one > >> out eth0. If it does, try "ip r d default via 192.168.0.200" to delete the > >> route pointing out usb0, and see if that resolves it for you. (Linux > >> supports multiple default routes, but there should be a 'metric' specifying > >> priority, or advanced custom routing tables to support multiple > >> simultaneous uplinks - like load-balancing traffic on two DSL lines from > >> one network) Yeah, I did this of course. Only one default route is left. > I've experienced the same thing as the OP. Running Windows as my hosts > means it's a pain to set it up as a router, so I connect via Wifi and > use it for everything. My solution is to put the following in my > /etc/network/interfaces under eth0: > > up route del default gw 192.168.0.200 > > This will remove your computer as the default gateway and use the > wireless one when the interface is brought up. Sometimes it fails so > I've had to put it in twice (yet to look into this). Okay, I'll see if that does the trick then -- but I am sure I only had one route left in the "route -n" output. regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
I've experienced the same thing as the OP. Running Windows as my hosts means it's a pain to set it up as a router, so I connect via Wifi and use it for everything. My solution is to put the following in my /etc/network/interfaces under eth0: up route del default gw 192.168.0.200 This will remove your computer as the default gateway and use the wireless one when the interface is brought up. Sometimes it fails so I've had to put it in twice (yet to look into this). -Nick Joel Newkirk wrote: > Derick Rethans wrote: > >> I get a DHCP lease, with nameservers and all, the route is correct too. >> However, I can't do any sort of connection - nor ping. >> >> Try "ip r" and see if it lists two default routes - one out usb0 and one >> out eth0. If it does, try "ip r d default via 192.168.0.200" to delete the >> route pointing out usb0, and see if that resolves it for you. (Linux >> supports multiple default routes, but there should be a 'metric' specifying >> priority, or advanced custom routing tables to support multiple >> simultaneous uplinks - like load-balancing traffic on two DSL lines from >> one network) >> ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: WLAN troubles
Derick Rethans wrote: > I get a DHCP lease, with nameservers and all, the route is correct too. > However, I can't do any sort of connection - nor ping. I have a similar problem when I fire up wifi, and it's caused by having two default routes. Try "ip r" and see if it lists two default routes - one out usb0 and one out eth0. If it does, try "ip r d default via 192.168.0.200" to delete the route pointing out usb0, and see if that resolves it for you. (Linux supports multiple default routes, but there should be a 'metric' specifying priority, or advanced custom routing tables to support multiple simultaneous uplinks - like load-balancing traffic on two DSL lines from one network) j ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
WLAN troubles
Hello, I received my freerunner last weekend, and liking it sofar. I've had a play with wifi - and although the freerunning sees the networks just fine (with iwlist eth0 scan) and I can connect to the network as well - I get a DHCP lease, with nameservers and all, the route is correct too. However, I can't do any sort of connection - nor ping. I've looked around on the wiki and list archives, but I can't find why it is not working. Does any of you have any hint at were to look at to debug this issue? regards, Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community