Re: defaultrouter/static routes not picked up from /etc/rc.conf

From: Doug White <dwhite_at_gumbysoft.com>
Date: Mon, 8 Dec 2003 11:54:13 -0800 (PST)
On Sun, 7 Dec 2003, Chris Ochs wrote:

> Yes it was the spaces causing the problem.  You know I've run freebsd for
> what 6 years now and never knew spaces mattered in rc.conf.

Its a shell script, and spaces count in variable names in the shell. I've
made the same mistake since I'm used to just about any other language that
allows it :)

> > On Sat, 6 Dec 2003, Chris Ochs wrote:
> >
> > > I installed from the 5.2-beta iso two days ago, cvsup'd from current and
> > > rebuilt everything.  On boot up it configures the interfaces fine except
> for
> > > the default route and static routes, it say's that defaultrouter and
> > > static_routes is not set.  I set the defaultrouter and static routes in
> > > /etc/defaults/rc.conf and it picks it up there just fine.  Any ideas why
> > > this happens?
> > >
> > > Here is my /etc/rc.conf
> > >
> >                v try without spaces
> > > defaultrouter ="63.236.114.1"
> > > hostname="ic3.paymentonline.com"
> > > ifconfig_bge0="inet 63.236.114.7 netmask 255.255.255.0"
> > > ifconfig_bge1="inet 10.100.2.6 netmask 255.255.255.0"
> > >
> > > static_routes = "00"
> > > route_00 = "10.100.0.0/16 10.100.2.1"
> > >
> >
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite_at_gumbysoft.com          |  www.FreeBSD.org
Received on Mon Dec 08 2003 - 11:25:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:33 UTC