From owner-freebsd-questions@FreeBSD.ORG Thu Feb 5 16:40:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A10FA16A4CE for ; Thu, 5 Feb 2004 16:40:09 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6949D43D6A for ; Thu, 5 Feb 2004 16:40:05 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 2EBF913622; Fri, 6 Feb 2004 13:40:04 +1300 (NZDT) Date: Fri, 6 Feb 2004 13:40:04 +1300 From: Jonathan Chen To: Mark McConnell Message-ID: <20040206004003.GA74687@grimoire.chen.org.nz> References: <40226C37.23409.1A6D6875@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40226C37.23409.1A6D6875@localhost> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: static routes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 00:40:09 -0000 On Thu, Feb 05, 2004 at 04:15:51PM -0800, Mark McConnell wrote: [...] > I want to be sure that the interfaces are configured automatically, > in case the system is rebooted. Should this go in rc.conf ? Where > (the interface? routed?) and with what syntax? Should I place a shell > script in /usr/local/etc/rc.d instead? > > Interactively, for example, I would say at the CLI: > route add -net 192.168.2.0 mask 0.0.0.0 192.168.1.1 /etc/rc.conf: static_routes="mynet" route_mynet="-net 192.168.2.0 mask 0.0.0.0 192.168.1.1" -- Jonathan Chen ---------------------------------------------------------------------- "I don't want to achive immortality through my works.. I want to achieve it through not dying" - Woody Allen