[CentOS] Outbound connections not using primary eth0 IP

Filipe Brandenburger filbranden at gmail.com
Mon Aug 4 19:39:04 UTC 2008


On Mon, Aug 4, 2008 at 15:31, Neil Aggarwal <neil at jammconsulting.com> wrote:
> I don't understand how that works since the IP addresses
> from :0 and :1 are on a different subnet than the one
> for eth0 and they have a different gateway.  I guess
> I don't understand the finer points of networking.

The point is that, when you have multiple gateways, the system will
choose one for you for each outgoing packet.

If the packet is not yet part of an established connection (i.e. if it
is an outgoing connection that is being opened), when the gateway is
chosen, so will the outgoing address, and this will cause you to
experience what you have experienced.

Administrators should *always* avoid using multiple default gateways
unless they really know what they are doing (and even in that case I
would recommend against it).

> The solution worked and I am thankful for that.

Great to know I could help!

Filipe



More information about the CentOS mailing list