Date: Wed, 23 Aug 2000 17:26:44 -0700 (PDT) From: Mikko Tyolajarvi <mikko@dynas.se> To: dougy@bryden.apana.org.au Cc: freebsd-questions@freebsd.org Subject: Re: route add syntax in rc.conf Message-ID: <200008240026.RAA02232@explorer.rsa.com> References: <011001c00d58$9f87bc90$847e03cb@ROADRUNNER>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008240026.RAA02232>