Setting permanent routes on Debian

Setting permanent routes on Debian

Kfir Lavi lavi.kfir at gmail.com
Sun Sep 26 23:14:54 IST 2010


Hi Eli,
1. You can use a script as stated here:
http://forums.debian.net/viewtopic.php?f=5&t=41191

2. Try to write the line like this:
post-up "route add -host x.x.x.x gw 10.0.1.1 dev eth0:1"
or
post-up "/sbin/route add -host x.x.x.x gw 10.0.1.1 dev eth0:1"

Regards,
Kfir

On Sun, Sep 26, 2010 at 5:28 PM, eliyahu cohen <eliyahu.cohen1 at yahoo.com>wrote:

> I want to set a permanent route on my Debian box. Initially I ran the
> following from the command line:
>
> route add -host x.x.x.x gw 10.0.1.1 dev eth0:1
>
> 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.
>
> up route add -host x.x.x.x gw 10.0.1.1 dev eth0:1
>
> 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?
>
> Thanks,
>
> Eli
>
>
>
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20100926/65d3c7b6/attachment.html>


More information about the Linux-il mailing list