From owner-freebsd-questions Thu Nov 4 8:53:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kirk.giovannelli.it (kirk.giovannelli.it [194.184.65.4]) by hub.freebsd.org (Postfix) with ESMTP id 4312B15312 for ; Thu, 4 Nov 1999 08:53:18 -0800 (PST) (envelope-from gmarco@scotty.masternet.it) Received: from scotty.masternet.it ([194.243.20.91]) by kirk.giovannelli.it (8.9.3/8.9.3) with ESMTP id RAA35170 for ; Thu, 4 Nov 1999 17:53:06 +0100 (CET) (envelope-from gmarco@scotty.masternet.it) Message-ID: <3821B8FA.3EDEFBB4@scotty.masternet.it> Date: Thu, 04 Nov 1999 17:48:58 +0100 From: Gianmarco Giovannelli X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: static routes in rc.conf Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Please explain, from man of rc.conf: static_routes (str) Set to the list of static routes you would like to add at system boot time. If not set to NO then for each whitespace separated element in the value, a route_em element variable is assumed to exist for each instance of element, and will later be passed to a ``route add'' opera- tion. Uhm... I thought a static_routes=" -net 10.0.0 192.168.0.124" is correct, but it doesn't work ... How is the correct syntax ? I looked also /etc/rc.network but I was unable to understand more... Here it is: # Set up any static routes. This should be done before router discovery. if [ "x${static_routes}" != "x" ]; then for i in ${static_routes}; do eval route_args=\$route_${i} route add ${route_args} done fi -- Regards... Gianmarco "Unix expert since yesterday" http://www.giovannelli.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message