Hi all,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am now testing on a simplest scenario. I have an ip <a href="http://192.168.3.5">192.168.3.5</a> on intranet. I want to route it through ISP1. All other traffic will go through ISP2 which is default gateway on machine so I dont need to add any rule for that. I have executed following commands
<br>----<br>echo 150 ISP1 &gt;&gt; /etc/iproute2/rt_tables<br>ip rule add from&nbsp; <a href="http://193.168.3.5/32">193.168.3.5/32</a> to <a href="http://0.0.0.0/0">0.0.0.0/0</a>&nbsp; table ISP1<br>ip route add default via <a href="http://192.168.1.1">
192.168.1.1</a>&nbsp; table ISP1<br>ip route flush cache<br>----<br>Following is the tables state<br><br>[root@localhost ~]# ip rule list<br>0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from all lookup local<br>32764:&nbsp; from <a href="http://193.168.3.5">193.168.3.5
</a> lookup ISP1<br>32765:&nbsp; from <a href="http://193.168.3.5">193.168.3.5</a> lookup ISP1<br>32766:&nbsp; from all lookup main<br>32767:&nbsp; from all lookup default<br><br>[root@localhost ~]# route<br>Kernel IP routing table<br>Destination&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Genmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags Metric Ref&nbsp;&nbsp;&nbsp; Use Iface
<br><a href="http://192.168.3.0">192.168.3.0</a>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://255.255.255.0">255.255.255.0</a>&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth0<br><a href="http://203.81.198.0">203.81.198.0</a>&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://255.255.255.0">
255.255.255.0</a>&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth2<br><a href="http://192.168.1.0">192.168.1.0</a>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://255.255.255.0">255.255.255.0</a>&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth1<br><a href="http://169.254.0.0">
169.254.0.0</a>&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://255.255.0.0">255.255.0.0</a>&nbsp;&nbsp;&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth1<br>default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://203.81.194.24">203.81.194.24</a>&nbsp;&nbsp; <a href="http://0.0.0.0">0.0.0.0</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 eth2
<br><br>[root@localhost ~]# ip route list table ISP1<br>default via <a href="http://192.168.1.1">192.168.1.1</a> dev eth1<br><br>system is natted.<br><br>I have checked for ip <a href="http://192.168.3.5">192.168.3.5</a> but this is still from default gateway. Not going my settings. Internet is working for 
<a href="http://192.168.3.5">192.168.3.5</a> but through ISP2. Will I have to do something with main table?<br><br>-- <br>Regards,<br>Arman <br>