<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Red Hat / CentOS Linux Setting a Default Gateway</title> <atom:link href="http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-67039</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Tue, 17 Jan 2012 08:49:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-67039</guid> <description>Your command will only work with Redhat and friends. We are talking about Debian Linux here. The correct command that will work on all debian version:
&lt;pre&gt;/etc/init.d/networking restart&lt;/pre&gt;
However, the latest version of Debian such as 6.x can use the service command:
&lt;pre&gt;/usr/sbin/service networking restart&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Your command will only work with Redhat and friends. We are talking about Debian Linux here. The correct command that will work on all debian version:</p><pre>/etc/init.d/networking restart</pre><p>However, the latest version of Debian such as 6.x can use the service command:</p><pre>/usr/sbin/service networking restart</pre>]]></content:encoded> </item> <item><title>By: LiNDA</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-67034</link> <dc:creator>LiNDA</dc:creator> <pubDate>Tue, 17 Jan 2012 08:08:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-67034</guid> <description>I just wondering why you don&#039;t use command #service network restart....???</description> <content:encoded><![CDATA[<p>I just wondering why you don&#8217;t use command #service network restart&#8230;.???</p> ]]></content:encoded> </item> <item><title>By: Ravi Saive</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-62630</link> <dc:creator>Ravi Saive</dc:creator> <pubDate>Wed, 21 Sep 2011 11:06:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-62630</guid> <description>Nice information....</description> <content:encoded><![CDATA[<p>Nice information&#8230;.</p> ]]></content:encoded> </item> <item><title>By: izack</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-61472</link> <dc:creator>izack</dc:creator> <pubDate>Thu, 11 Aug 2011 08:11:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-61472</guid> <description>hi
i have a problem on how to configure a red had linux pc as the gateway
in a single computer with to NIC</description> <content:encoded><![CDATA[<p>hi<br
/> i have a problem on how to configure a red had linux pc as the gateway<br
/> in a single computer with to NIC</p> ]]></content:encoded> </item> <item><title>By: Norton</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-59493</link> <dc:creator>Norton</dc:creator> <pubDate>Wed, 18 May 2011 17:06:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-59493</guid> <description>Regarding setting the default route and Vivek&#039;s mildly complicated solution:
In CentOS5 (at least) you can set GATEWAYDEV=eth0 in /etc/sysconfig/network, and you do not need to modify ifcfg-eth* to remove the GATEWAY definitions.</description> <content:encoded><![CDATA[<p>Regarding setting the default route and Vivek&#8217;s mildly complicated solution:</p><p>In CentOS5 (at least) you can set GATEWAYDEV=eth0 in /etc/sysconfig/network, and you do not need to modify ifcfg-eth* to remove the GATEWAY definitions.</p> ]]></content:encoded> </item> <item><title>By: Allison</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-59412</link> <dc:creator>Allison</dc:creator> <pubDate>Sat, 14 May 2011 17:52:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-59412</guid> <description>im having issues changing my server NIC from DHCP to static, i keep getting the error : &quot;Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
does not seem to be present, delaying initialization.
[FAILED] &quot;
Help will be appreciated.</description> <content:encoded><![CDATA[<p>im having issues changing my server NIC from DHCP to static, i keep getting the error : &#8220;Shutting down loopback interface:                          [  OK  ]<br
/> Bringing up loopback interface:                            [  OK  ]<br
/> does not seem to be present, delaying initialization.<br
/> [FAILED] &#8221;</p><p>Help will be appreciated.</p> ]]></content:encoded> </item> <item><title>By: Henrik A</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-53206</link> <dc:creator>Henrik A</dc:creator> <pubDate>Wed, 22 Dec 2010 02:04:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-53206</guid> <description>Hi,
I am trying to set up a RHEL5 box with two nic&#039;s.
eth2 is connected to the internet
eth3 is connected to a firewall that runs our lan and has a IPSec connection to a customer.
My problem is this.
When I try to start up eth3 it is automatically assigned a default gateway, which is the same as for eth2. So when I try to set a static route i get &quot;RTNETLINK answer: file exists&quot; because it already has a gateway.
ifcfg-eth3:
# Intel Corporation 82571EB Gigabit Ethernet Controller
DEVICE=eth3
BOOTPROTO=none
HWADDR=00:15:17:8C:7F:1B
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.2.99
route-eth3:
192.168.2.0/24 via 192.168.2.254
10.212.1.0/24 via 192.168.2.254
the resulting route table:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
xxx.xxx.xxx.xxx   0.0.0.0         255.255.255.248 U     0      0        0 eth2
10.212.1.0      192.168.2.254   255.255.255.0   UG    0      0        0 eth3
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth3
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth3
0.0.0.0         xxx.xxx.xxx.xxx   0.0.0.0         UG    0      0        0 eth2
The destination 192.168.2.0 should have the gateway 192.168.2.254
Any ideas on how to get this working?</description> <content:encoded><![CDATA[<p>Hi,<br
/> I am trying to set up a RHEL5 box with two nic&#8217;s.<br
/> eth2 is connected to the internet<br
/> eth3 is connected to a firewall that runs our lan and has a IPSec connection to a customer.</p><p>My problem is this.<br
/> When I try to start up eth3 it is automatically assigned a default gateway, which is the same as for eth2. So when I try to set a static route i get &#8220;RTNETLINK answer: file exists&#8221; because it already has a gateway.</p><p>ifcfg-eth3:</p><p># Intel Corporation 82571EB Gigabit Ethernet Controller<br
/> DEVICE=eth3<br
/> BOOTPROTO=none<br
/> HWADDR=00:15:17:8C:7F:1B<br
/> ONBOOT=yes<br
/> TYPE=Ethernet<br
/> USERCTL=no<br
/> IPV6INIT=no<br
/> PEERDNS=yes<br
/> NETMASK=255.255.255.0<br
/> IPADDR=192.168.2.99</p><p>route-eth3:<br
/> 192.168.2.0/24 via 192.168.2.254<br
/> 10.212.1.0/24 via 192.168.2.254</p><p>the resulting route table:<br
/> Kernel IP routing table<br
/> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br
/> xxx.xxx.xxx.xxx   0.0.0.0         255.255.255.248 U     0      0        0 eth2<br
/> 10.212.1.0      192.168.2.254   255.255.255.0   UG    0      0        0 eth3<br
/> 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth3<br
/> 169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth3<br
/> 0.0.0.0         xxx.xxx.xxx.xxx   0.0.0.0         UG    0      0        0 eth2</p><p>The destination 192.168.2.0 should have the gateway 192.168.2.254</p><p>Any ideas on how to get this working?</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-47185</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Wed, 05 May 2010 01:31:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-47185</guid> <description>You can add hook to network service or better &lt;a href=&quot;http://www.cyberciti.biz/faq/redhat-centos-fedora-linux-static-routing/&quot; rel=&quot;nofollow&quot;&gt;configure static routing&lt;/a&gt; :) this will take care of service network restart command.
HTH</description> <content:encoded><![CDATA[<p>You can add hook to network service or better <a
href="http://www.cyberciti.biz/faq/redhat-centos-fedora-linux-static-routing/" rel="nofollow">configure static routing</a> :) this will take care of service network restart command.</p><p>HTH</p> ]]></content:encoded> </item> <item><title>By: Colin</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-47183</link> <dc:creator>Colin</dc:creator> <pubDate>Wed, 05 May 2010 00:23:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-47183</guid> <description>/etc/rc.local
route add -net netmask gw eth0
route add -net netmask gw eth1
route add default gw eth0
This is the way I would imagine doing it myself. but what happens after a services network restart</description> <content:encoded><![CDATA[<p>/etc/rc.local<br
/> route add -net netmask gw eth0<br
/> route add -net netmask gw eth1<br
/> route add default gw eth0</p><p>This is the way I would imagine doing it myself. but what happens after a services network restart</p> ]]></content:encoded> </item> <item><title>By: MadMac66</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-46093</link> <dc:creator>MadMac66</dc:creator> <pubDate>Mon, 22 Feb 2010 09:10:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-46093</guid> <description>Hi,
if possible, simply edit /etc/rc.local and add all the routings you want.
There you can setup specific routings for specific NICs and of course also the Default Gateway. example:
route add -net  netmask  gw  eth0
route add -net  netmask  gw  eth1
route add default gw  eth0
this way you can setup are more complex routing.</description> <content:encoded><![CDATA[<p>Hi,<br
/> if possible, simply edit /etc/rc.local and add all the routings you want.<br
/> There you can setup specific routings for specific NICs and of course also the Default Gateway. example:<br
/> route add -net  netmask  gw  eth0<br
/> route add -net  netmask  gw  eth1<br
/> route add default gw  eth0</p><p>this way you can setup are more complex routing.</p> ]]></content:encoded> </item> <item><title>By: bobby</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-45819</link> <dc:creator>bobby</dc:creator> <pubDate>Thu, 04 Feb 2010 04:23:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-45819</guid> <description>How to add specific route for another network</description> <content:encoded><![CDATA[<p>How to add specific route for another network</p> ]]></content:encoded> </item> <item><title>By: bobby</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-45807</link> <dc:creator>bobby</dc:creator> <pubDate>Wed, 03 Feb 2010 09:31:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-45807</guid> <description>Dear Vivek,can u please more brief on Nics,i have 2 networks and 2 lans total 4 lan ports,
now i have 2 difrnt n/w coming from single cable,(IT N/w,signaling N/w),and both n/w have diffrent Gateways.i can not add gateways in /etc/sysconfig/network-script/ifcfg-eth0 and eth1,in /etc/sysconfig/network i have added gateway of signaling..
now i can ping at signaling n/w  but not IT network?how to add gateway for another network</description> <content:encoded><![CDATA[<p>Dear Vivek,can u please more brief on Nics,i have 2 networks and 2 lans total 4 lan ports,<br
/> now i have 2 difrnt n/w coming from single cable,(IT N/w,signaling N/w),and both n/w have diffrent Gateways.i can not add gateways in /etc/sysconfig/network-script/ifcfg-eth0 and eth1,in /etc/sysconfig/network i have added gateway of signaling..</p><p>now i can ping at signaling n/w  but not IT network?how to add gateway for another network</p> ]]></content:encoded> </item> <item><title>By: DunxD</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-44171</link> <dc:creator>DunxD</dc:creator> <pubDate>Wed, 21 Oct 2009 10:36:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-44171</guid> <description>You don&#039;t want multiple default gateways, else you will get intermittent networking problems!
What you want is one default gateway, then if you need specific routes for specific subnets you should set those up as required.
Restart network is also available on RHEL and CentOS by &lt;code&gt;services network restart&lt;/code&gt;</description> <content:encoded><![CDATA[<p>You don&#8217;t want multiple default gateways, else you will get intermittent networking problems!</p><p>What you want is one default gateway, then if you need specific routes for specific subnets you should set those up as required.</p><p>Restart network is also available on RHEL and CentOS by <code>services network restart</code></p> ]]></content:encoded> </item> <item><title>By: Raghavan alias Saravanan M</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-43710</link> <dc:creator>Raghavan alias Saravanan M</dc:creator> <pubDate>Wed, 16 Sep 2009 14:42:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-43710</guid> <description>Hi there,
Yours is a good site and have found useful at various places and searches.
Thanks for the efforts and keep up the good work :)
The way you restart the service, should NOT it be &#039;/etc/init.d/network&#039; instead of &#039;networking&#039;? Just check that out.
Cheers,
Raghavan alias Saravanan M.</description> <content:encoded><![CDATA[<p>Hi there,</p><p> Yours is a good site and have found useful at various places and searches.</p><p> Thanks for the efforts and keep up the good work :)</p><p> The way you restart the service, should NOT it be &#8216;/etc/init.d/network&#8217; instead of &#8216;networking&#8217;? Just check that out.</p><p>Cheers,<br
/> Raghavan alias Saravanan M.</p> ]]></content:encoded> </item> <item><title>By: jamie</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-41282</link> <dc:creator>jamie</dc:creator> <pubDate>Tue, 21 Apr 2009 14:54:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-41282</guid> <description>route add -net 192.168.60.0 netmask 255.255.255.0 gw 192.168.30.1
route add -net 192.168.30.0 netmask 255.255.255.0 gw 192.168.30.1
This forces all traffic through my 30 subnets gateway, which is 192.168.30.1.</description> <content:encoded><![CDATA[<p>route add -net 192.168.60.0 netmask 255.255.255.0 gw 192.168.30.1<br
/> route add -net 192.168.30.0 netmask 255.255.255.0 gw 192.168.30.1</p><p>This forces all traffic through my 30 subnets gateway, which is 192.168.30.1.</p> ]]></content:encoded> </item> <item><title>By: spiderik</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-41269</link> <dc:creator>spiderik</dc:creator> <pubDate>Mon, 20 Apr 2009 18:59:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-41269</guid> <description>But I have eth0 and eth1 under DHCP and I need the eth0 to be the default gw / any hints?</description> <content:encoded><![CDATA[<p>But I have eth0 and eth1 under DHCP and I need the eth0 to be the default gw / any hints?</p> ]]></content:encoded> </item> <item><title>By: Rudy</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-40034</link> <dc:creator>Rudy</dc:creator> <pubDate>Thu, 29 Jan 2009 01:13:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-40034</guid> <description>BiOg is right in that if you have multiple interfaces it will pick the last one. The fix to that is pretty much what vivek said.
Set your default gateway in the /etc/sysconfig/network and make sure none of the interface /etc/sysconfig/network-scripts/ifcfg- files have a &quot;GATEWAY&quot; line in them. That will force the system to pick the default GW from the network file. You can set static routes in the /etc/sysconfig/network-scripts/route- files</description> <content:encoded><![CDATA[<p>BiOg is right in that if you have multiple interfaces it will pick the last one. The fix to that is pretty much what vivek said.<br
/> Set your default gateway in the /etc/sysconfig/network and make sure none of the interface /etc/sysconfig/network-scripts/ifcfg- files have a &#8220;GATEWAY&#8221; line in them. That will force the system to pick the default GW from the network file. You can set static routes in the /etc/sysconfig/network-scripts/route- files</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-39229</link> <dc:creator>vivek</dc:creator> <pubDate>Sat, 15 Nov 2008 04:18:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-39229</guid> <description>Open /etc/sysconfig/network and append
&lt;code&gt;GATEWAY=eth0.gateway.IP.address&lt;/code&gt;
Open /etc/sysconfig/network-scripts/route-eth1 and add routing for eth1 and restart it. For example:
&lt;code&gt;202.54.1.2/29 via 202.54.2.254&lt;/code&gt;
Also, set static route for /etc/sysconfig/network-scripts/route-eth0:
&lt;code&gt;10.1.2.3/8 via 10.10.38.95&lt;/code&gt;
Do not add gateway entries to
/etc/sysconfig/network-scripts/ifcfg-eth1 and /etc/sysconfig/network-scripts/ifcfg-eth0</description> <content:encoded><![CDATA[<p>Open /etc/sysconfig/network and append<br
/> <code>GATEWAY=eth0.gateway.IP.address</code></p><p>Open /etc/sysconfig/network-scripts/route-eth1 and add routing for eth1 and restart it. For example:<br
/> <code>202.54.1.2/29 via 202.54.2.254</code></p><p>Also, set static route for /etc/sysconfig/network-scripts/route-eth0:<br
/> <code>10.1.2.3/8 via 10.10.38.95</code></p><p>Do not add gateway entries to<br
/> /etc/sysconfig/network-scripts/ifcfg-eth1 and /etc/sysconfig/network-scripts/ifcfg-eth0</p> ]]></content:encoded> </item> <item><title>By: BiOg</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-39228</link> <dc:creator>BiOg</dc:creator> <pubDate>Fri, 14 Nov 2008 21:39:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-39228</guid> <description>With 2 (or more) NIC I notice that the default gateway is always set to the last NIC.
I.E: if you have eth0 and eth1 and configure you default gateway via /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth* and event tweak the routes via /etc/sysconfig/network-scritps/route-eth* and /etc/sysconfig/static-routes to have the default be on eth0
It still end up being the eth1 network used as the default route (shown by the route command).
The script executed during the boot just goes through all the interface configuration and then set the default route on the last visited interface; trashing previous settings (go figure why).
Somebody suggested to me that there is a way to select the default device (or interface) but I am yet to find a good hit on Google.</description> <content:encoded><![CDATA[<p>With 2 (or more) NIC I notice that the default gateway is always set to the last NIC.</p><p>I.E: if you have eth0 and eth1 and configure you default gateway via /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth* and event tweak the routes via /etc/sysconfig/network-scritps/route-eth* and /etc/sysconfig/static-routes to have the default be on eth0</p><p>It still end up being the eth1 network used as the default route (shown by the route command).</p><p>The script executed during the boot just goes through all the interface configuration and then set the default route on the last visited interface; trashing previous settings (go figure why).</p><p>Somebody suggested to me that there is a way to select the default device (or interface) but I am yet to find a good hit on Google.</p> ]]></content:encoded> </item> <item><title>By: wizkidno</title><link>http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-37106</link> <dc:creator>wizkidno</dc:creator> <pubDate>Thu, 29 Nov 2007 13:39:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/#comment-37106</guid> <description>If you only do the editing in the /etc/network/interfaces file they will be overwritten at boot time.
Please edit /etc/sysconfig/network as described in the article as well.
You can allso set the gateway on each device by editing :
vim /etc/sysconfig/networking/devices/ifcfg-eth0
vim /etc/sysconfig/networking/devices/ifcfg-eth1
And changing the gateway declaration.
Alternativly you could use the util :
system-config-network (from both command line and X.)</description> <content:encoded><![CDATA[<p>If you only do the editing in the /etc/network/interfaces file they will be overwritten at boot time.<br
/> Please edit /etc/sysconfig/network as described in the article as well.</p><p>You can allso set the gateway on each device by editing :<br
/> vim /etc/sysconfig/networking/devices/ifcfg-eth0<br
/> vim /etc/sysconfig/networking/devices/ifcfg-eth1<br
/> And changing the gateway declaration.</p><p>Alternativly you could use the util :<br
/> system-config-network (from both command line and X.)</p> ]]></content:encoded> </item> </channel> </rss>
