From owner-freebsd-questions Wed Aug 23 17:27: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 325DE37B6A1 for ; Wed, 23 Aug 2000 17:26:52 -0700 (PDT) Received: (qmail 93125 invoked from network); 24 Aug 2000 00:26:50 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 24 Aug 2000 00:26:50 -0000 Received: (qmail 26288 invoked from network); 24 Aug 2000 00:27:10 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 24 Aug 2000 00:27:10 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.9.3/8.9.3) id RAA02232; Wed, 23 Aug 2000 17:26:44 -0700 (PDT) (envelope-from mikko) Date: Wed, 23 Aug 2000 17:26:44 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200008240026.RAA02232@explorer.rsa.com> To: dougy@bryden.apana.org.au Cc: freebsd-questions@freebsd.org Subject: Re: route add syntax in rc.conf Newsgroups: local.freebsd-questions References: <011001c00d58$9f87bc90$847e03cb@ROADRUNNER> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In local.freebsd-questions you write: >I wish to add a few routes automatically on boot, effectively achieving the >same >as running "route add xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy" manually. I >understand >this can be done by adding lines in rc.conf, however neither man rc.conf nor >the >mailing list archives are particularly explicit on the exact syntax >required. Hmmm.... rc.conf(5): 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_element variable is assumed to exist whose contents will later be passed to a ``route add'' operation. [...] >Is it then correct to assume that an entry like the above in rc.conf will in >fact achieve the same as running "route add xxx.xxx.xxx.xxx >yyy.yyy.yyy.yyy" manually ... or is there >more to this than is apparent fromwhat I've read to date ?? You assume correctly. The "whitespace separated elements" mentioned above are indeed simply labels -- use "net0", "net1" ... "netN" if you like. It is just a way of implementing an "associative array" in /bin/sh. /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message