Linux and routing tables
Written by Arnaud no commentsTo add another default gateway to a dedicated interface, in this example I want 2 interfaces and one default GW for each IP (my 2nd interface has IP 10.10.10.10)
ip route add default via 10.10.10.1 table 100 ip rule add from 10.10.10.10 table 100 ip rule list ip route list table local ip route list table 100
source & more : http://lartc.org/howto/lartc.rpdb.html