Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 1999 17:48:58 +0100
From:      Gianmarco Giovannelli <gmarco@scotty.masternet.it>
To:        questions@freebsd.org
Subject:   static routes in rc.conf
Message-ID:  <3821B8FA.3EDEFBB4@scotty.masternet.it>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3821B8FA.3EDEFBB4>