From owner-freebsd-questions Thu Nov 4 9:46:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (Postfix) with ESMTP id 17593156F2 for ; Thu, 4 Nov 1999 09:46:32 -0800 (PST) (envelope-from thierry.herbelot@alcatel.fr) Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id SAA01986; Thu, 4 Nov 1999 18:40:39 +0100 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id SAA21652; Thu, 4 Nov 1999 18:45:29 +0100 (MET) Received: from telss1 (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.3/8.9.3) with ESMTP id SAA27265; Thu, 4 Nov 1999 18:43:28 +0100 (MET) Received: from alcatel.fr by telss1 (8.8.8+Sun/SMI-SVR4) id SAA17331; Thu, 4 Nov 1999 18:45:14 +0100 (MET) Message-ID: <3821C577.A02B543B@alcatel.fr> Date: Thu, 04 Nov 1999 18:42:15 +0100 From: Thierry Herbelot Reply-To: thierry.herbelot@alcatel.fr Organization: ALCATEL CIT Nanterre X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Gianmarco Giovannelli Cc: questions@FreeBSD.ORG Subject: Re: static routes in rc.conf References: <3821B8FA.3EDEFBB4@scotty.masternet.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, this is the correct syntax : static_routes="melo2" # Set to static route list (or leave empty). route_melo2="-net 192.168.2 129.2.161.92" Gianmarco Giovannelli wrote: > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message