If you need to use a different gateway for each interface then you are going to have to use iproute2. Go to the link that Robert e-mailed to you.<br><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lartc.org/howto/index.html" target="_blank">
http://lartc.org/howto/index.html</a><br><br><br><div><span class="gmail_quote">On 5/28/06, <b class="gmail_sendername">Niels Przybilla</b> <<a href="mailto:nprzybilla@yahoo.de">nprzybilla@yahoo.de</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>



<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Hi,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">thnaks for this. But I need to setup two gateways.<br>In 
the corresponding ifcfg files are the right gateways setup.<br><br>Best 
regards</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"><br>Niels</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="de">
  <hr>
  <font face="Tahoma" size="2"><b>Von:</b> <a href="mailto:centos-bounces@centos.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">centos-bounces@centos.org</a> 
  [mailto:<a href="mailto:centos-bounces@centos.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">centos-bounces@centos.org</a>] <b>Im Auftrag von </b>Joshua 
  Gimer<br><b>Gesendet:</b> Sonntag, 28. Mai 2006 15:25<br><b>An:</b> CentOS 
  mailing list<br><b>Betreff:</b> Re: [CentOS] two gateways on one PC 
  ?<br></font><br></div></blockquote></div><div><span class="e" id="q_10b7c63c7d0e4d66_1">
  <div></div>Look in /etc/sysconfig/network, There should be a line in there 
  that looks like GATEWAY=83.x.x.1. If there isn't then check 
  /etc/sysconfig/networking/devices/ifcfg-name of interface for the same line. 
  If neither of them have if then adding it in either should be sufficent. 
  <br><br>
  <div><span class="gmail_quote">On 5/28/06, <b class="gmail_sendername">Robert</b> 
  <<a href="mailto:kerplop@sbcglobal.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kerplop@sbcglobal.net</a>> 
  wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Niels 
    Przybilla wrote:<br><br>> Hi,<br>><br>> i added second nic to my 
    server<br>><br>> I have these two uplinks:<br>><br>> My main 
    uplink is 195.XXX.XXX.XXX<br>> My secondary is 
    83.XXX.XXX.XXX<br>><br>> When I add the secondary NIC, CentOS 
    automatically sets default gw to<br>> 83.XXX.XXX.1 and deletes the 
    gateway from 195.XXX.XXX.1<br>><br>> How can I set it that CentOs uses 
    the gateway 195.XXX.XXX.1 as default<br>> gateway. When I set this 
    manually with route, CentOS changes my<br>> sentings after a 
    reboot.<br>><br>> And I need also to accept incoming traffic on 
    83.XXX.XXX.1.<br>><br>> Thanks for your help and best regards 
    <br>><br>> Niels<br><br>Have you checked <a href="http://lartc.org/howto/index.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lartc.org/howto/index.html</a> 
    -- especially section<br>4.x 
    ?<br><br><br>_______________________________________________<br>CentOS 
    mailing list<br><a href="mailto:CentOS@centos.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thx<br>Joshua Gimer </span></div><div></div>

</div><br>_______________________________________________<br>CentOS mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">
http://lists.centos.org/mailman/listinfo/centos</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Thx<br>Joshua Gimer