<?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"
	>
<channel>
	<title>Comments on: FAQ: static routes after restart/reboot in Fedora/RedHat/CentOS</title>
	<atom:link href="http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 20:21:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: artiomix</title>
		<link>http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20392</link>
		<dc:creator>artiomix</dc:creator>
		<pubDate>Tue, 13 May 2008 07:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20392</guid>
		<description>Thanks for the tip, daveg!

Here is the part &lt;code&gt;/etc/init.d/interfaces&lt;/code&gt; code:

&lt;code&gt;
        # Add non interface-specific static-routes.
        if [ -f /etc/sysconfig/static-routes ]; then
           grep "^any" /etc/sysconfig/static-routes &#124; while read ignore args ; do
              /sbin/route add -$args
           done
        fi
&lt;/code&gt;

Looks like &lt;b&gt;any&lt;/b&gt; must be at the beginning of each line in &lt;code&gt;/etc/sysconfig/static-routes&lt;/code&gt;. At the same time Fedora is able to determine interface name packet should be routed through (like eth1) by destination IP. :)</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, daveg!</p>
<p>Here is the part <code>/etc/init.d/interfaces</code> code:</p>
<p><code><br />
        # Add non interface-specific static-routes.<br />
        if [ -f /etc/sysconfig/static-routes ]; then<br />
           grep &#8220;^any&#8221; /etc/sysconfig/static-routes | while read ignore args ; do<br />
              /sbin/route add -$args<br />
           done<br />
        fi<br />
</code></p>
<p>Looks like <b>any</b> must be at the beginning of each line in <code>/etc/sysconfig/static-routes</code>. At the same time Fedora is able to determine interface name packet should be routed through (like eth1) by destination IP. <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daveg</title>
		<link>http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20385</link>
		<dc:creator>daveg</dc:creator>
		<pubDate>Tue, 13 May 2008 01:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20385</guid>
		<description>The alternate way of doing it is to put the routes in /etc/sysconfig/static-routes. So the above route would like this like in the static-routes file:

any net 192.168.0.0 netmask 255.255.255.0 gw 192.168.100.1

Where &lt;strong&gt;any&lt;/strong&gt; is specified above you can also set specific interfaces (such as eth1).</description>
		<content:encoded><![CDATA[<p>The alternate way of doing it is to put the routes in /etc/sysconfig/static-routes. So the above route would like this like in the static-routes file:</p>
<p>any net 192.168.0.0 netmask 255.255.255.0 gw 192.168.100.1</p>
<p>Where <strong>any</strong> is specified above you can also set specific interfaces (such as eth1).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artiomix</title>
		<link>http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20266</link>
		<dc:creator>artiomix</dc:creator>
		<pubDate>Sat, 10 May 2008 12:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20266</guid>
		<description>Thank you, confiq. Keep commenting! ;)</description>
		<content:encoded><![CDATA[<p>Thank you, confiq. Keep commenting! <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: confiq</title>
		<link>http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20241</link>
		<dc:creator>confiq</dc:creator>
		<pubDate>Fri, 09 May 2008 23:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.linuxscrew.com/2008/05/09/faq-static-routes-after-restartreboot-in-fedoraredhatcentos/#comment-20241</guid>
		<description>hey... nice tip... keep those comming :)</description>
		<content:encoded><![CDATA[<p>hey&#8230; nice tip&#8230; keep those comming <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.479 seconds -->
