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.coh...@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@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il >
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il