There isn't going to be a difference to your routing. Whatever gateway comes first in your routing table is going to be used first. You can add the one that you want to use as the primary gateway in ifcfg-ethx of your first interface. Then you should see two entries in your routing table (along with the usual entries and information):
<br><br>Destination Gateway Genmask Interface<br><a href="http://0.0.0.0">0.0.0.0</a> (The address of your first gateway) <a href="http://0.0.0.0">
0.0.0.0</a> eth0<br><a href="http://0.0.0.0">0.0.0.0</a> (The address of your second gateway) <a href="http://0.0.0.0">0.0.0.0</a> eth1<br><br><div><span class="gmail_quote">On 5/25/06,
<b class="gmail_sendername">Tom Brown</b> <<a href="mailto:tom@ng23.net">tom@ng23.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>On a multihomed box how can i set different gateways for each NIC?<br>Setting them in the ifcfg-ethx does not seem to make any difference to<br>the routing?<br><br>thanks<br>_______________________________________________
<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>
<br clear="all"><br>-- <br>Thx<br>Joshua Gimer