[CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread Neil Aggarwal
Hello: I have a machine running CentOS 5.2 I added two IP addresses to eth0 by copying /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0:0 /etc/sysconfig/network-scripts/ifcfg-eth0:1 and changing the relevant IP info. I am now seeing outbound connections

Re: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread Filipe Brandenburger
On Mon, Aug 4, 2008 at 13:00, Neil Aggarwal [EMAIL PROTECTED] wrote: Any ideas why this is happening? Because you have two different default gateways. In that case, Linux will rotate between them, using one or the other for each outgoing packet. If you want all your outgoing traffic to go

Re: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread nate
Neil Aggarwal wrote: Any ideas why this is happening? Try looking at this? http://www.clintoneast.com/articles/multihomed.php In general I try to make sure my systems only have 1 default gateway, makes life a lot easier. Leave the multi homing to the routers(or my preference layer 3 switches).

Re: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread Bill Campbell
On Mon, Aug 04, 2008, nate wrote: Neil Aggarwal wrote: Any ideas why this is happening? Try looking at this? http://www.clintoneast.com/articles/multihomed.php In general I try to make sure my systems only have 1 default gateway, makes life a lot easier. Leave the multi homing to the

Re: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread Bill Campbell
On Mon, Aug 04, 2008, Bill Campbell wrote: On Mon, Aug 04, 2008, nate wrote: Neil Aggarwal wrote: Any ideas why this is happening? Try looking at this? http://www.clintoneast.com/articles/multihomed.php In general I try to make sure my systems only have 1 default gateway, makes life a lot

RE: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread Neil Aggarwal
Filipe: I removed the GATEWAY line from the :0 and :1 files and now everything seems to be working perfectly. 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

Re: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread Filipe Brandenburger
On Mon, Aug 4, 2008 at 15:31, Neil Aggarwal [EMAIL PROTECTED] 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

Re: [CentOS] Outbound connections not using primary eth0 IP

2008-08-04 Thread nate
Bill Campbell wrote: It's worth noting that some software allows one to specify the outgoing IP (e.g. using inet_interfaces in postfix or sourceaddress with innd). That certainly makes sense when you have multiple IPs that are routed by the same default gateway(most often in the same subnet,