[CentOS] Multiple Internet facing Nics - Gateway issue

Wed Jul 1 19:18:53 UTC 2009
James A. Peltier <jpeltier at fas.sfu.ca>

On Wed, 1 Jul 2009, Doug Coats wrote:

> I have a server with 4 nics.  Two are using different internet connections, both with static IP's, and two
> are connected to our private network.
>  
> The two internet facing nics seem to be battling over the gateway designation.  Which ever I designate as
> the gateway the other stops responding to incoming traffic.  I need both to listen to inbound traffic.  One
> for our main web page and the other for another web server.  I found some information of Iproute2 but that
> did not seem to solve my issues.
>  
> Here are the config files:
>  
> ifcfg-eth2
> DEVICE=eth2
> BOOTPROTO=static
> HWADDR=00:24:E8:52:92:8E
> ONBOOT=yes
> IPADDR=xx.yy.51.45
> NETMASK=255.255.255.252
> GATEWAY=xx.yy.51.46
>  
> ifcfg-eth3
> DEVICE=eth3
> BOOTPROTO=static
> HWADDR=00:24:E8:52:92:90
> ONBOOT=yes
> IPADDR=aa.bb.166.2
> NETMASK=255.255.255.224
> GATEWAY=aa.bb.166.1
>  
> network
> NETWORKING=yes
> NETWORKING_IPV6=no
> HOSTNAME=heritage01
> GATEWAY=xx.yy.51.46
> GATEWAYDEV=eth2

remove the gateway from /etc/sysconfig/network, reboot and try again.

-- 
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
HPC Coordinator
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax     : 778-782-3045
E-Mail  : jpeltier at sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
           http://blogs.sfu.ca/people/jpeltier
MSN     : subatomic_spam at hotmail.com

The point of the HPC scheduler is to
keep everyone equally unhappy.