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

Re: nslu2: two ethernets: one by default

On Fri, Oct 30, 2009 at 05:32:09PM +0100, Xan wrote:
> Hi,
> 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.

You can configure them as different IP networks and use both, or you
have to get something like quagga involved to manage your routes with
link detect enabled.

Len Sorensen

Reply to: