From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 17:33:02 2009 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 341D31065672 for ; Wed, 21 Jan 2009 17:33:02 +0000 (UTC) (envelope-from frankstaals@gmx.net) Received: from edu-smtp-02.edutel.nl (edu-smtp-02.edutel.nl [88.159.1.222]) by mx1.freebsd.org (Postfix) with ESMTP id EE28A8FC1B for ; Wed, 21 Jan 2009 17:33:01 +0000 (UTC) (envelope-from frankstaals@gmx.net) Received: from Rena.FStaals.net (unknown [88.159.208.104]) by edu-smtp-02.edutel.nl (Postfix) with ESMTP id 73618121935; Wed, 21 Jan 2009 18:33:00 +0100 (CET) Message-ID: <49775C4C.2010305@gmx.net> Date: Wed, 21 Jan 2009 18:33:00 +0100 From: Frank Staals User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: Peter Steele References: <2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB@polaris.maxiscale.com> In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB@polaris.maxiscale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Do I need to run netif stop/start if IP is changed? 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: Wed, 21 Jan 2009 17:33:02 -0000 Peter Steele wrote: > We have systems that upon initial configuration have no IP addresses > assigned. Their rc.conf entries look like this: > > > > > and also executes explicit ifconfig and route add commands that match > the entries in rc.conf. > > > > The question is, should we also execute a netif stop/start sequence when > this IP/router information is assigned? Are there other services that > should also be stopped/restarted when the IP is set? Ideally, we want to > avoid having to reboot the box to set the IP as we are doing. > > As far as I know you do not have to, changing interface settings with ifconfig should be enough. I used to have a script to switch between LAN and WLAN on my laptop which used only ifconfig , route flush and route add default . Only thing that comes to mind that could go wrong if daemons are configured to listen on a specifc ip instead of (default) configs with :. Regards, -- - Frank