From owner-freebsd-questions Fri Sep 22 3:59:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 0089837B43C for ; Fri, 22 Sep 2000 03:59:05 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id PAA00834 for ; Fri, 22 Sep 2000 15:16:01 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e8MAwne06440 for freebsd-questions@freebsd.org; Fri, 22 Sep 2000 14:58:49 +0400 Date: Fri, 22 Sep 2000 14:58:48 +0400 From: Igor Roboul To: FreeBSD questions Subject: Re: Static_routes in rc.conf Message-ID: <20000922145848.C6239@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: FreeBSD questions References: <11AB46936C37D2118B7C0008C7246A5D021184BD@NOREX01> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <11AB46936C37D2118B7C0008C7246A5D021184BD@NOREX01>; from Eddy.Deegan@ecng.co.uk on Fri, Sep 22, 2000 at 11:34:00AM +0100 X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 22, 2000 at 11:34:00AM +0100, Deegan, Eddy wrote: > What I actually want to achieve is to have the system set an equivalent to > "route add 128.98.200.22 193.128.139.225" on bootup. Sure I could hack my > own entry into rc.network but I want to use the standard mechanism. I just > can't figure it out. > > Help?! "man rc.conf" and search for static. Please, try reading manual pages before asking. This will give you much more expirience. I this case: 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. So you need (for your example): static_routes="ohost" route_ohost="128.98.200.22 193.128.139.225" somewhere in /etc/rc.conf -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message