The only difference between placing it in /etc/sysconfig/static-routes (which does not exist until you create one) and placing it in sysinit is that if you give the service network restart command it will not get run and the route will drop. Sysinit only gets parsed on startup. Also, make sure you test the /etc/sysconfig/static-routes method if you are going to use it. According to the RH documentation that is how it should be done but I don't know if Smoothwall makes any modification to this nor do I know how many versions back in RH it works that way. I tested RH8 and it works perfectly as described. Another way to verify that it looks for this is running:
fgrep static-routes /etc/sysconfig/network-scripts/ifup* Look through the results and you should see an entry: if [ -f /etc/sysconfig/static-routes ]; then That is where it checks for your file. In RH8 this is in ifup-aliases but earlier versions of RH might have it in a different script but in that folder under ifup. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rune Berge Sent: Friday, February 28, 2003 4:17 PM To: [EMAIL PROTECTED] Subject: RE: Connecting two networks through a RedHat box On Fri, 28 Feb 2003, Larry Brown wrote: > route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.10 > > It turns out that that is not persistent. When you reboot that box it will > remove the entry. There are two ways of making it persistent. The first is > to add the entire line to its rc.local. The second is to create an > /etc/sysconfig/static-routes which is the better choice. Neither of the two files you mention exist on my smoothwall system, so I added the line at the end of /etc/rc.d/sysinit instead. That would do the trick, wouldn't it? Rune -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list