Setting permanent routes on Debian

Setting permanent routes on Debian

Baruch Even baruch at ev-en.org
Sun Sep 26 17:34:50 IST 2010


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.

Baruch

On 26 Sep 2010 17:29, "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/390c6e04/attachment-0001.html>


More information about the Linux-il mailing list