Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 May 2012 13:17:03 -0500
From:      Noel <noeldude@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Adding a Static Route to rc.conf?
Message-ID:  <4FA2CB9F.6050903@gmail.com>
In-Reply-To: <CAHu1Y70iNuNn-ufDR38Mt2uz06Df9ygATbRmW2iAJaN_j3nq3g@mail.gmail.com>
References:  <CANnsUMERCF3B=e2X_=JXi-wR1VediS%2BW24zO175zcCTfAgCG4A@mail.gmail.com> <4FA2C1C2.9000905@gmail.com> <CAHu1Y70iNuNn-ufDR38Mt2uz06Df9ygATbRmW2iAJaN_j3nq3g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/3/2012 1:08 PM, Michael Sierchio wrote:
>
>
> On Thu, May 3, 2012 at 10:34 AM, Noel <noeldude@gmail.com
> <mailto:noeldude@gmail.com>> wrote:
>
>     On 5/3/2012 11:45 AM, Chris Maness wrote:
>     > On Tue, May 1, 2012 at 8:31 AM, Chris Maness <chris at
>     chrismaness.com <http://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
>     <http://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
>     <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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA2CB9F.6050903>