From owner-freebsd-questions@FreeBSD.ORG Thu May 3 18:43:40 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A78F2106564A for ; Thu, 3 May 2012 18:43:40 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5930C8FC0A for ; Thu, 3 May 2012 18:43:40 +0000 (UTC) Received: by yhgm50 with SMTP id m50so2096234yhg.13 for ; Thu, 03 May 2012 11:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=7RfHthZvkOtAn6oD8uUHaJDORpyxIiH1bD3eJv4hL5g=; b=wU71dKw8U9oIZKq6byoTOZMJE1QetbP1InPBHKDsIYTzVC0BAMkEMb6H2BwieiO/Vc 4EvPiotd+UwKftLExPu9EovUQecB14ySSE9Yllj89a8t2cXdXyc4d0x9CMiF54vkxH90 qvJRXsr1g6ok0SJ2BGCen2eA7uguOYpDHaKrLZn1B9TspdHtAVCmhYjB67I7oaFC6oL4 AGi+c78ofWTvCB6Df9TjqGVGXsQtlfMgsbjvko0JXrDpikqQ+LJ/I3p0PhE1oDjQnSBC 2kB/C+3t1deYuQ9IpbSz2Q6JSNvGVfPfUm0BFYfsLyDE5m/huZHD3DD3d57MObWi5Uu4 xJRw== Received: by 10.236.185.10 with SMTP id t10mr4163438yhm.112.1336069024867; Thu, 03 May 2012 11:17:04 -0700 (PDT) Received: from [192.168.70.186] ([12.107.221.2]) by mx.google.com with ESMTPS id d11sm26485839yhi.21.2012.05.03.11.17.03 (version=SSLv3 cipher=OTHER); Thu, 03 May 2012 11:17:03 -0700 (PDT) Message-ID: <4FA2CB9F.6050903@gmail.com> Date: Thu, 03 May 2012 13:17:03 -0500 From: Noel User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4FA2C1C2.9000905@gmail.com> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Adding a Static Route to rc.conf? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2012 18:43:40 -0000 On 5/3/2012 1:08 PM, Michael Sierchio wrote: > > > On Thu, May 3, 2012 at 10:34 AM, Noel > wrote: > > On 5/3/2012 11:45 AM, Chris Maness wrote: > > On Tue, May 1, 2012 at 8:31 AM, Chris Maness chrismaness.com > wrote: > >> How do add a static route to rc.conf? > >> > >> Thanks, > >> Chris Maness > > > > http://www.freebsd.org/doc/handbook/network-routing.html > > > > see section 32.2.5.2 Persistent Configuration > > > > -- Noel Jones > > I added: > > > > # Add Internal Net 2 as a static route > > static_routes="internalnet2" > > route_internalnet2="-net 44.18.44.0/24 > 192.168.1.33" > > > > to rc.conf per the section above. I rebooted and it was a > no go. Did > > I miss something? > > Looks OK, and works for me. Wild guess is you need to enable > netwait in rc.conf > http://www.freebsd.org/cgi/man.cgi?query=rc.conf&sektion=5 > > (near the bottom) > > > This is 9.X-specific advice, and this option doesn't exist in 8- > or prior. Indeed, I should have mentioned that if you have freebsd-8x or earlier, this feature isn't built-in but can be easily added: http://freebsd.1045724.n5.nabble.com/Re-rc-8-script-waiting-for-the-network-to-become-usable-td4242157.html Or the earlier discussion: http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056521.html -- Noel Jones