<div dir="ltr">Hi Eli,<br>1. You can use a script as stated here:<br><a href="http://forums.debian.net/viewtopic.php?f=5&t=41191">http://forums.debian.net/viewtopic.php?f=5&t=41191</a><br><br>2. Try to write the line like this:<br>
post-up "route add -host x.x.x.x gw 10.0.1.1 dev eth0:1"<br>or<br>post-up "/sbin/route add -host x.x.x.x gw 10.0.1.1 dev eth0:1"<br><br>Regards,<br>Kfir<br><br><div class="gmail_quote">On Sun, Sep 26, 2010 at 5:28 PM, eliyahu cohen <span dir="ltr"><<a href="mailto:eliyahu.cohen1@yahoo.com">eliyahu.cohen1@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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>
</blockquote></div><br></div>