[CentOS] CentOS 4.x - Multiple gateways

Thu May 25 12:35:35 UTC 2006
Joshua Gimer <jgimer at gmail.com>

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 at 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 at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Thx
Joshua Gimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20060525/9f254a27/attachment-0005.html>