From owner-freebsd-net@FreeBSD.ORG Tue Sep 16 11:22:49 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6F52106564A for ; Tue, 16 Sep 2008 11:22:49 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from smtp01.cdmon.com (smtp01.cdmon.com [212.36.75.232]) by mx1.freebsd.org (Postfix) with ESMTP id 818918FC15 for ; Tue, 16 Sep 2008 11:22:49 +0000 (UTC) (envelope-from jespasac@minibofh.org) Received: from jespasac.cdmon.com (62.Red-217-126-43.staticIP.rima-tde.net [217.126.43.62]) by smtp01.cdmon.com (Postfix) with ESMTP id A4665F7AA4 for ; Tue, 16 Sep 2008 13:05:49 +0200 (CEST) Message-ID: <48CF930B.4020704@minibofh.org> Date: Tue, 16 Sep 2008 13:05:47 +0200 From: Jordi Espasa Clofent User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Change netmask with /etc/rc.d/network restart or reboot the machine? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 11:22:49 -0000 Hi all, I've a lot of boxes in production with a lot of associated services (http, ftp, ssh, smtp, mysql...). Because of internal administration reasons I need to ampliate my internal IPs range from /24 to /16; so I need to change my internal NIC settings. The last goal is make the change with _security_. I prefer a reboot with thier 2/4 minutes downtime than a odd miss-function in several production services. I tend to think that the use of ifconfig(8) will be enough; of course, I'll also modify /etc/rc.conf 'ifconfig_' record for posterior reboots. Or maybe I has more sense to modify directly the /etc/rc.conf record and next use the '/etc/rc.d/netif restart'; or maybe make the change in /etc/rc.conf and reboot the machines. ¿What do you tink about? -- Thanks, Jordi Espasa Clofent