Date: Thu, 04 Nov 1999 18:42:15 +0100 From: Thierry Herbelot <thierry.herbelot@alcatel.fr> To: Gianmarco Giovannelli <gmarco@scotty.masternet.it> Cc: questions@FreeBSD.ORG Subject: Re: static routes in rc.conf Message-ID: <3821C577.A02B543B@alcatel.fr> References: <3821B8FA.3EDEFBB4@scotty.masternet.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3821C577.A02B543B>