From owner-freebsd-doc Fri Sep 22 3:45:24 2000 Delivered-To: freebsd-doc@freebsd.org Received: from raditex.se (gandalf.raditex.se [192.5.36.18]) by hub.freebsd.org (Postfix) with ESMTP id 044CC37B423 for ; Fri, 22 Sep 2000 03:45:21 -0700 (PDT) Received: (from kaj@localhost) by raditex.se (8.9.3/8.9.3) id MAA70881; Fri, 22 Sep 2000 12:45:13 +0200 (CEST) (envelope-from kaj@raditex.se) X-Authentication-Warning: frodo.sickla.raditex.se: kaj set sender to kaj@raditex.se using -f To: "Deegan, Eddy" Cc: "'doc@FreeBSD.org'" Subject: Re: static_routes in rc.conf References: <11AB46936C37D2118B7C0008C7246A5D021184BC@NOREX01> From: Rasmus Kaj Cc: Rasmus Kaj Organization: Raditex AB - http://Raditex.se/ X-Face: M9cR~WYav<"fu%MaslX0`43PAYY?uIsM8[#E(0\Xuy9rj>4gE\h3jm.7DD?]R8*^7T\o&vT U@[53Dwkuup4[0@gw#~kyu>`unH?kVj9CJa02(h>Ki\+i=%rn%sDf^KC.!?IHkKjMAbkd\jgmphp^' d|Q;OeXEAhq?ybGqOs1CHb6TJT42'C`Krnk61//AOfXtNjj/t'`5>Vw0QX!dKfOL$.f+S"LIuwR<;I Z0Qnnx(F^F]o@*V%TUtEV'1Z[TkOl^FFV9Z~A[b19%}uP*,huCU Date: 22 Sep 2000 12:45:13 +0200 In-Reply-To: "Deegan, Eddy"'s message of "Fri, 22 Sep 2000 11:33:24 +0100" Message-ID: <84og1g1z9i.fsf@frodo.sickla.raditex.se> Lines: 31 User-Agent: Gnus/5.0806 (Gnus v5.8.6) XEmacs/20.4 (Emerald) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>> "DE" == Deegan, Eddy writes: DE> I want to use static_routes in rc.conf on release 4 to configure DE> two predefined entries in the routing table autmatically on DE> bootup. I tried various combinations of "destination gateway" DE> strings but it's not seeming to work. Cutting and pasting the DE> code out of rc.network reveals the eval statement therein which, DE> fankly seems bizarre. I can't make head nor tail of what it's DE> supposed to be doing. The suff is "two-leveled", to make it easy to have multiple static routes. Try something like this: static_routes="foo bar" route_foo="128.98.200.22 193.128.139.225" route_bar="10.47.11.17 193.128.139.224" export route_foo route_bar I used two static routes in the example to show the point of having it this way, of course, it works well with just one route also ... Isn't there an example of this somewhere? There should be. Maybe it got lost in the split of rc.conf to /etc/rc.conf and /etc/defaults/rc.conf ..? -- Rasmus Kaj ------------------------ rasmus@kaj.se - http://Raditex.se/~kaj/ \ Write down the problem - Get some coffee - Write down the solution \----------------------------------------------------- http://Raditex.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message