=?UTF-8?B?TGFzc2UgS8Okcmtrw6RpbmVuIC8gVHJvbmlj?=
<tronic+(E-Mail Removed)> écrivait news:du84u6$cjg$(E-Mail Removed):
> Hi,
>
> I want to have my routes (obtained by the DHCP client) to be ordered
> so that it will use eth0 (Gigabit Ethernet) whenever possible, eth1
> (WiFi) otherwise and finally ppp0 (GPRS) if all else fails.
>
> This seems to be working fine as long as I manually keep the routes in
> the correct order, but this is tricky when interfaces come and go all
> the time.
>
> So, what would be a proper solution?
If you have control on the other network (partners on the other side of
each access point), you may use a dynalic routing protocol like RIP, OSPF
or BGP (using the Quagga daemon for exemple).
You may also try the linux ip route 2 'equalize' feature, that set many
root to a destination (default or specific) with weight for each one.
And last, you may write a script to check (ping, ...) link status and
add/remove route automaticaly.
Regards
|