Re: [CentOS] Configuring Multiple Gateways

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



You may be able to do something with the 'ip' command. In particular, I think you need to do some googling for "source routing" or something similar.

Typically you can only have one active default gateway and you need to use something like BGP so your box knows which route is the shortest to a destination. Either that, or you'll have to manually pick which route a particular subnet takes.

Is this primarily for incoming or outgoing traffic? If it's outgoing, you can probably do some load sharing. If it's incoming, you'll probably want to rethink what you're doing.

On 11/22/06, Matthew Martz <mdmartz@xxxxxxxxx> wrote:
I'm in need of installing two NICs in a machine that are connected to 2
different public networks and I need both IP addresses accessible from the
outside.  The IPs are part of two completely different subnets.

For example:
eth0
     IP - 10.10.10.2/30
     GW - 10.10.10.1

eth1
     IP - 20.20.20.6/30
     GW - 20.20.20.5

How can I configure 2 gateways on this server?

Thanks!
--
Matthew Martz
CentOS Mirror Admin
mdmartz@xxxxxxxxx

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

_______________________________________________
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