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):

Destination         Gateway                                                   Genmask        Interface
0.0.0.0               (The address of your first gateway)               0.0.0.0           eth0
0.0.0.0               (The address of your second gateway)          0.0.0.0           eth1

On 5/25/06, Tom Brown <tom@ng23.net> wrote:
Hi

On a multihomed box how can i set different gateways for each NIC?
Setting them in the ifcfg-ethx does not seem to make any difference to
the routing?

thanks
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos



--
Thx
Joshua Gimer