<div>Thanks for your responses. I have tried some of the configurations that you have mentioned but not all of them. I will try the others tonight when the server is less active. In the meantime I will read the links you sent.</div>
<div> </div>
<div>Thanks again. This is starting to drive me crazy.<br><br></div>
<div class="gmail_quote">On Wed, Jul 1, 2009 at 3:07 PM, Alexander Dalloz <span dir="ltr"><<a href="mailto:ad%2Blists@uni-x.org">ad+lists@uni-x.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Doug Coats schrieb:<br>
<div>
<div></div>
<div class="h5">> I have a server with 4 nics. Two are using different internet connections,<br>> both with static IP's, and two are connected to our private network.<br>><br>> The two internet facing nics seem to be battling over the gateway<br>
> designation. Which ever I designate as the gateway the other stops<br>> responding to incoming traffic. I need both to listen to inbound traffic.<br>> One for our main web page and the other for another web server. I found<br>
> some information of Iproute2 but that did not seem to solve my issues.<br>><br>> Here are the config files:<br>><br>> ifcfg-eth2<br>> DEVICE=eth2<br>> BOOTPROTO=static<br>> HWADDR=00:24:E8:52:92:8E<br>
> ONBOOT=yes<br>> IPADDR=xx.yy.51.45<br>> NETMASK=255.255.255.252<br>> GATEWAY=xx.yy.51.46<br>><br>> ifcfg-eth3<br>> DEVICE=eth3<br>> BOOTPROTO=static<br>> HWADDR=00:24:E8:52:92:90<br>> ONBOOT=yes<br>
> IPADDR=aa.bb.166.2<br>> NETMASK=255.255.255.224<br>> GATEWAY=aa.bb.166.1<br>><br>> network<br>> NETWORKING=yes<br>> NETWORKING_IPV6=no<br>> HOSTNAME=heritage01<br>> GATEWAY=xx.yy.51.46<br>> GATEWAYDEV=eth2<br>
><br>> rt_tables<br>> #<br>> # reserved values<br>> #<br>> 255 local<br>> 254 main<br>> 253 default<br>> 0 unspec<br>> #<br>> # local<br>> #<br>> #1 inr.ruhep<br>
> 200 Cable<br>> 201 T1<br>> iproute2 routes<br>> ip route add xx.yy.51.44/30 dev eth2 src xx.yy.51.46 table Cable<br>> ip route add default via xx.yy.51.46<br>> ip route add xx.yy.51.44/30 dev eth2 src xx.yy.51.46<br>
> ip route add default via xx.yy.51.46<br>> ip rule add from xx.yy.51.46 table Cable<br>> ip route add aa.bb.166.0/27 dev eth3 src aa.bb.165.2 table T1<br>> ip route add default via aa.bb.166.1<br>> ip route add aa.bb.166.0/27 dev eth3 src aa.bb.166.2<br>
> ip rule add from aa.bb.166.2 table T1<br>> ip route flush cache<br>><br>> Other people seem to be using this configuration successfully but I seem to<br>> be missing something important.<br>><br>> Any help is greatly appreciated!!!!!!! Thanks!<br>
<br></div></div>The GATEWAY parameter within the ifcfg-<ethX> configuration files tries<br>to set the default gateway. There can be just 1 default gateway for a<br>system. So, the interface which comes up first will set the route and<br>
the other has no effect.<br><br>Remove the GATEWAY entry from all ifcfg-<ethX> files and place the<br>GATEWAY parameter into /etc/sysconfig/network only.<br><br>Running different networks you must can set additional routings by<br>
route-<ethX> configuration files inside /etc/sysconfig/network-scripts/.<br><br>Given your default gateway is set as xx.yy.51.46 for the network<br>configured on eth2, you set to use a gateway aa.bb.166.1 for other<br>
destinations by<br><br>ip route add targetnet/CIDR via aa.bb.166.1 dev eth3<br><br>Please see<br><br><a href="http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html" target="_blank">http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html</a><br>
<br>You multiple uplink topic is documented in this howto<br><br><a href="http://lartc.org/howto/lartc.rpdb.multiple-links.html" target="_blank">http://lartc.org/howto/lartc.rpdb.multiple-links.html</a><br><br><br>Alexander<br>
<br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br>