From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 17:20:15 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 AC9D51065686 for ; Wed, 21 Jan 2009 17:20:15 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 8434E8FC1E for ; Wed, 21 Jan 2009 17:20:15 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1232558409-157500000000-jLrpzn X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id CA7BE38DD1 for ; Wed, 21 Jan 2009 09:20:09 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id MCxUyslqc9jqyls8 for ; Wed, 21 Jan 2009 09:20:09 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 X-ASG-Orig-Subj: Do I need to run netif stop/start if IP is changed? Date: Wed, 21 Jan 2009 09:20:07 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB@polaris.maxiscale.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Do I need to run netif stop/start if IP is changed? Thread-Index: Acl77IHld8UxSuNgRcSTQDEvUK05aQ== From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1232558409 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:20:16 -0000 We have systems that upon initial configuration have no IP addresses assigned. Their rc.conf entries look like this: =20 ifconfig_nfe0=3D"UP" ifconfig_nfe1=3D"UP" cloned_interfaces=3D"lagg0" ifconfig_lagg0=3D"laggproto failover laggport nfe0 laggport nfe1" defaultrouter=3D"0.0.0.0" =20 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. =20 ifconfig_lagg0=3D"laggproto failover laggport nfe0 laggport nfe1 192.168.17.49 netmask 255.255.240.0" defaultrouter=3D"192.168.16.1" =20 and also executes explicit ifconfig and route add commands that match the entries in rc.conf.=20 =20 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. =20 =20