[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nslu2: two devices: one by default

En/na Lennart Sorensen ha escrit:
On Fri, Oct 30, 2009 at 05:32:09PM +0100, Xan wrote:

Perhaps it's a too much simple question, but I don't know what achieve that: In nslu2 I have two network devices: eth0 and wlan0 (wifi). I just want that:

- nslu2 tries if eth0 is plugged. If it's, then all network connection were established via eth0 - if eth0 is unplugged, then all network connection were established via wlan0.

Now the first is done, but when I unplugged the eth0 I can't reach the system (all packets loose)

Anyone could help me? I suspect that I have to touch the route table. Is it true?
My route table is:

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet        *          U     0      0        0 eth0
localnet * U 0 0 0 wlan0 default UG 0 0 0 wlan0
default         UG    0      0        0 eth0

wlan0 has static ip and eth0 has static ip is the router (what has internet connectivity). I just want to have local network connections between all other devices and my nslu2.

Linux in general does not deal with ignoring routes just because an
interface is down.  Unix like systems never do.  Routers do.
But I can reach other boxes with the same network and different ip?
What's the easiest solution to achieve that when I unplug eth0 I can reach nslu2 via wlan0?


Reply to: