<?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: Auto Startup Script for Debian Linux (Example is Add Route in Routing Table)</title>
	<atom:link href="http://www.adminpick.com/auto-startup-script-for-debian-linux-example-is-add-route-in-routing-table/02/06/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adminpick.com/auto-startup-script-for-debian-linux-example-is-add-route-in-routing-table/02/06/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 24 Apr 2010 03:08:45 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Eliyahu</title>
		<link>http://www.adminpick.com/auto-startup-script-for-debian-linux-example-is-add-route-in-routing-table/02/06/#comment-34016</link>
		<dc:creator>Eliyahu</dc:creator>
		<pubDate>Thu, 16 Jul 2009 16:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.adminpick.com/auto-startup-script-for-debian-linux-example-is-add-route-in-routing-table/02/06/#comment-34016</guid>
		<description>I had to prevent the default gateway from being registered on a multi-homed system.  On Debian Lenny 5.0.2 I tried to use

  up route del ....

but found that I was failing with a SIOCDELRT error even though the route was being deleted from the table.  (Maybe a race condition?)  I prevented the failing by adding &#039;&#124;&#124; true&#039; to the end of the line, but was still logging an error message.  So I redirected stderr to /dev/null and ended with

  up route del default gw 1.2.3.4 2&gt; /dev/null &#124;&#124; true

This seems to do the trick (with a full address .

HTH,

-    Eliyahu</description>
		<content:encoded><![CDATA[<p>I had to prevent the default gateway from being registered on a multi-homed system.  On Debian Lenny 5.0.2 I tried to use</p>
<p>  up route del &#8230;.</p>
<p>but found that I was failing with a SIOCDELRT error even though the route was being deleted from the table.  (Maybe a race condition?)  I prevented the failing by adding &#8216;|| true&#8217; to the end of the line, but was still logging an error message.  So I redirected stderr to /dev/null and ended with</p>
<p>  up route del default gw 1.2.3.4 2&gt; /dev/null || true</p>
<p>This seems to do the trick (with a full address .</p>
<p>HTH,</p>
<p>-    Eliyahu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Me</title>
		<link>http://www.adminpick.com/auto-startup-script-for-debian-linux-example-is-add-route-in-routing-table/02/06/#comment-950</link>
		<dc:creator>Me</dc:creator>
		<pubDate>Thu, 22 Mar 2007 05:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.adminpick.com/auto-startup-script-for-debian-linux-example-is-add-route-in-routing-table/02/06/#comment-950</guid>
		<description>This will work. Another way is to add the route command into your interfaces file so that the routes come up with the interface. eg.

iface eth0 inet static
     usual config here
     up route add -net 
     down route del 

This way, the routes are only present when the required interface is operational.

Cheers,
Me.</description>
		<content:encoded><![CDATA[<p>This will work. Another way is to add the route command into your interfaces file so that the routes come up with the interface. eg.</p>
<p>iface eth0 inet static<br />
     usual config here<br />
     up route add -net<br />
     down route del </p>
<p>This way, the routes are only present when the required interface is operational.</p>
<p>Cheers,<br />
Me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
