I have one LAN card. I've divided it to sub interfaces. Is there solution to have different working gateways on this interfaces? I want when PC cannot reach to destination using first gateway it should go through secondary gateway. I use Ubuntu 14.04. Here is my interface config :
auto eth0
iface eth0 inet static
address 10.0.0.25
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.88
dns-nameservers 8.8.8.8 8.8.4.4
#sub interface
auto eth0:1
iface eth0:1 inet static
address 10.0.0.26
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.99