Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Dec 2006 17:18:05 -0600
From:      Lane <lane@joeandlane.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Networkdevice configuration: reboot necessary?
Message-ID:  <200612101718.06068.lane@joeandlane.com>
In-Reply-To: <457C92B7.5040502@infracaninophile.co.uk>
References:  <200612102300.39424.news@budostore.de> <457C92B7.5040502@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 10 December 2006 17:05, Matthew Seaman wrote:
> Karl Sinn wrote:
> > I went on with the configuration of my first FreeBSD computer. And I
> > found something amazing:
> >
> > After the configuration of the network device with sysinstall the network
> > did not work immediately.
> > In the handbook it is written to reboot after configuration.
>
> Hmmm... sysinstall will usually prompt you to bring up a network interface
> after you've filled out the appropriate menu stuff.
>
> What sysinstall is doing behind the scenes is rewriting the settings in
> /etc/rc.conf.  As you've discovered, that only has any effect when running
> the scripts in /etc/rc.d (or /usr/local/etc/rc.d) -- ie. generally when
> rebooting.  In fact, what sysinstall does is append new settings to the
> end of rc.conf, confusingly leaving the old ones still at the top of the
> file. You would be well advised (for the sake of your own sanity, if
> nothing else) to learn how to edit rc.conf directly to make such
> configuration changes, plus keep the file trimmed of old entries and
> extraneous fluff.
>
> > Is this really necessary?
> > Is there no other way to change the configuration without turning of the
> > computer?
>
> Of course there is.  You just run ifconfig from the command line,
> like you would with any other unix system.  Of course, that pre-supposes
> you know what to put onto the ifconfig command line: the ifconfig(8)
> manual page is a good place to start.
>
> 	Cheers,
>
> 	Matthew
Maybe

/etc/rc.d/netif restart

is a quick way to apply the configuration changes in /etc/rc.conf.

Of course nothing is as good as knowing ifconfig(8) ... and one day I will 
scratch that off my "to do" list :)

lane



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