From owner-freebsd-hackers Mon Oct 15 19:20:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 8627437B40D; Mon, 15 Oct 2001 19:20:28 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.11.6/8.11.6) id f9G2KIj85566; Mon, 15 Oct 2001 21:20:18 -0500 (CDT) (envelope-from dan) Date: Mon, 15 Oct 2001 21:20:17 -0500 From: Dan Nelson To: Andrew Reid Cc: j balan , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Network Startup Message-ID: <20011015212017.B73961@dan.emsphone.com> References: <200110152116.f9FLGsL51934@proscouting.com> <20011015162221.B8674@dan.emsphone.com> <20011016100105.D12238@plug.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011016100105.D12238@plug.cx> User-Agent: Mutt/1.3.23i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Oct 16), Andrew Reid said: > On Mon, Oct 15, 2001 at 04:22:21PM -0500, Dan Nelson wrote: > > In the last episode (Oct 15), j balan said: > > > Does anyone know the command to reload rc.conf > > > > 'reboot' is the only sure way. > > That's a bit of a problem as far as I'm concerned. Perhaps the network > scripts should be redesigned in a similar manner to the one taken on be > RedHat. Of course, you can always run the equivalent commands yourself to get the system in synch with what you put in rc.conf. i.e. if you added an alias ip to an interface, you can run ifconfig xxx inet 1.2.3.4 alias > I started playing around with such a thing, using usr/local/etc/rc.d/ > as a base for 'network' scripts which take arguments such as 'start', > 'stop' and 'restart'. > > Implementation of such a thing would be fairly trivial methinks. What > are the thoughts on this sort of approach to management of network > interfaces and ancillary services? Is it smart enough to only add the alias interface on "restart", or does it try to deconfigure the whole NIC, and add all the IPs back? How about if you change an IP number? Is it smart enough to kill and restart named, inetd, smbd, or any other programs that might have bound to that IP? It's not as simple as "I'll just rerun the ifconfig commands", and I stand by "reboot is the only sure way" :) -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message