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 * 255.255.0.0 U 0 0 0 eth0
localnet * 255.255.0.0 U 0 0 0
wlan0
default 172.26.0.1 0.0.0.0 UG 0 0 0
wlan0
default 172.26.0.1 0.0.0.0 UG 0 0 0 eth0
wlan0 has static ip 172.26.0.3 and eth0 has static ip 172.26.0.2
172.26.0.1 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.