From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 23:48:03 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 6BA9B106566B for ; Thu, 22 Jan 2009 23:48:03 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 371568FC12 for ; Thu, 22 Jan 2009 23:48:03 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 82EBDAFC1FF; Thu, 22 Jan 2009 14:48:02 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Thu, 22 Jan 2009 14:48:02 -0900 User-Agent: KMail/1.9.10 References: <2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB@polaris.maxiscale.com> In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB@polaris.maxiscale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901221448.02252.fbsd.questions@rachie.is-a-geek.net> Cc: Peter Steele 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: Thu, 22 Jan 2009 23:48:03 -0000 On Wednesday 21 January 2009 08:20:07 Peter Steele wrote: > The user later runs a tool and specifies the IP address to use for a > given system. This tool modifies ifconfig and default router lines, e.g. > > > > ifconfig_lagg0="laggproto failover laggport nfe0 laggport nfe1 > 192.168.17.49 netmask 255.255.240.0" > > defaultrouter="192.168.16.1" > > > > 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. The question is, should the tool execute the ifconfig and route commands or should the tool simply call netif stop/start so that the tool does not have to be maintained for those command sequences and dependencies of netif get processed (i.e.: /etc/rc.d/pf resync). -- Mel Problem with today's modular software: they start with the modules and never get to the software part.