WLAN troubles

Sander van Grieken sander at 3v8.net
Wed Aug 27 10:22:32 CEST 2008

> 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" 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
>> 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.


More information about the community mailing list