Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
130.89.136.0 * 255.255.252.0 U 0 0 0 eth1
130.89.160.0 * 255.255.224.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 130.89.136.1 0.0.0.0 UG 0 0 0 eth1
default 130.89.160.1 0.0.0.0 UG 0 0 0 eth0So, I am wondering how I can prevent two default routes, or even better, have eth0 be preferred (wired), but if it goes down, let eth1 take over (wireless). route works fine if only one intercae is up.
If I have only one interface up, my gateway is not represented by an ip adress but by name (which resolves to the gateway ip adress). Pinging anything by name fails (unknown host) if both interfaces are up , but by ip adress works ping works. When only one interface is up, ping by name works.
Maybe I'm looking at the wrong things as the cause for the problem, but I'm not at home with troubleshooting networks, so any help will be appreciated.



