PDA

View Full Version : [ubuntu] Multiple default gateway on single interface with failover?



Turbo Donkey
March 6th, 2009, 12:29 PM
Is there any way I can have a single interface (eth0, 192.168.254.254) with 2 default gateways, say 192.168.254.1 and 192.168.254.2, and have failover working on these gateways?

Cheers :)

puppywhacker
March 6th, 2009, 06:17 PM
If you want to do it in an advanced way use "tc" traffic control. If you want some whacky script solution look at the link

http://blog.taragana.com/index.php/archive/how-to-load-balancing-failover-with-dual-multi-wan-adsl-cable-connections-on-linux/