Networking Forums

Networking Forums > Computer Networking > Linux Networking > Multiple default routes - sorting by interface priority

Reply
Thread Tools Display Modes

Multiple default routes - sorting by interface priority

 
 
=?UTF-8?B?TGFzc2UgS8Okcmtrw6RpbmVuIC8gVHJvbmlj?=
Guest
Posts: n/a

 
      03-03-2006, 12:08 AM
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?
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      03-03-2006, 06:15 AM
On 2006-03-03, Lasse Kärkkäinen / Tronic <tronic+(E-Mail Removed)> wrote:
> So, what would be a proper solution?


Using OSPFD to recalculate the routing 'on the fly'.
Davide

--
Writing Solid Code. I still think buying a book of that title from
Microsoft Press would be like buying a handbook for humanitarians from
Pol Pot. --Paul Tomblin
 
Reply With Quote
 
Antoine EMERIT
Guest
Posts: n/a

 
      03-05-2006, 11:02 AM
=?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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question: IPROUTES2 Multiple default routes restricted to specificNICs zedkay Linux Networking 2 12-24-2010 08:24 AM
Multiple default routes j-k-l@mail.ru Linux Networking 0 04-09-2008 11:20 AM
How to set VLAN priority for socket (not for interface) linux62i@yahoo.com Linux Networking 0 10-27-2006 11:57 AM
Multiple default routes on multiple interfaces t_pascal@my-deja.com Linux Networking 3 07-07-2005 03:28 PM
Multiple default routes Kool Breeze Linux Networking 5 12-04-2003 01:41 AM



1 2 3 4 5 6 7 8 9 10 11