Re: [CentOS] CentOS 4.x - Multiple gateways

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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



--
Thx
Joshua Gimer
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux