<p>You want to lookup man interfaces. The file /etc/network/interfaces is the network setup file of Debian and is the place to use post-up rules or a specialized option its name I can't remember right now.</p>
<p>Baruch</p>
<p><blockquote type="cite">On 26 Sep 2010 17:29, "eliyahu cohen" <<a href="mailto:eliyahu.cohen1@yahoo.com">eliyahu.cohen1@yahoo.com</a>> wrote:<br><br>I want to set a permanent route on my Debian box. Initially I ran the following from the command line:<br>
<br>
route add -host x.x.x.x gw 10.0.1.1 dev eth0:1<br>
<br>
but when I try to make it permanent by adding the following to /etc/network/interfaces I get a 'Failed to bring up eth0.' when restarting the network.<br>
<br>
up route add -host x.x.x.x gw 10.0.1.1 dev eth0:1<br>
<br>
I've googled around and haven't found any syntax that works. I could just add this to rc.local, but I'm sure there's a better way. Can someone point me to a working example of setting permanent routes in Debian?<br>
<br>
Thanks,<br>
<br>
Eli<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br>
</blockquote></p>