From owner-freebsd-questions@FreeBSD.ORG Sat Feb 8 02:43:29 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D8A3021F for ; Sat, 8 Feb 2014 02:43:29 +0000 (UTC) Received: from frv196.fwdcdn.com (frv196.fwdcdn.com [212.42.77.196]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9134212ED for ; Sat, 8 Feb 2014 02:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Cc:To:Subject:From:Date; bh=CfuGv/GO6nIFv0arFcfVLv37tAR1mQpum3bOxl9Jq6E=; b=knUY6D0jrm6SdRuQ1mO7x/qiqvdnIgXsNHThWa/DfKH0u0OWIibB+vZPcGWYPdXc3dI5CYp3W6D3VRLzgDJRX8Re4FnVbjjCSzTepN0/q2BUyD3vQ59Q9vV8QXdWmUSCjUVcztfgrS5dW+eoXo4hr/5552lK2GQh9lGmRhByVes=; Received: from [10.10.10.35] (helo=frv35.fwdcdn.com) by frv196.fwdcdn.com with smtp ID 1WBxsy-00073j-EK for questions@freebsd.org; Sat, 08 Feb 2014 04:43:16 +0200 Date: Sat, 08 Feb 2014 04:43:16 +0200 From: Vladislav Prodan Subject: Re[2]: Restart network without reboot ? To: Erich Dollansky X-Mailer: mail.ukr.net 5.0 Message-Id: <1391827303.738906888.k9hzy6eo@frv35.fwdcdn.com> In-Reply-To: <20140208102029.04d2eb10@X220.alogt.com> References: <1391822758.499117562.qad9aups@frv35.fwdcdn.com> <20140208102029.04d2eb10@X220.alogt.com> MIME-Version: 1.0 Received: from universite@ukr.net by frv35.fwdcdn.com; Sat, 08 Feb 2014 04:43:16 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary Content-Disposition: inline Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2014 02:43:29 -0000 > "Erich Dollansky" wrote: > > Hi, > > On Sat, 08 Feb 2014 03:31:08 +0200 > Vladislav Prodan wrote: > > > > > # service netif restart && service routing restart > > Stopping dhclient. > > Waiting for PIDS: 672. > > > > And disconnect via ssh :( > > as expected. > > What is your problem? What there are other ways to restart the network without breaking the current ssh session? > > > > > # uname -a > > FreeBSD vm-10-1.domain.com 10.0-STABLE FreeBSD 10.0-STABLE #0 > > r261419: Mon Feb 3 02:57:25 UTC 2014 > > root@grind.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > > > > > # cat /etc/rc.conf > > zfs_enable="YES" > > hostname="vm-10-1.domain.com" > > ifconfig_em0="DHCP" > > ifconfig_em1="DHCP" > > sshd_enable="YES" > > > Do you have a procedure in place to know the IP address of the machine > after the restart? > > You should be able to connect to the machine without problems. > > I do not know how sshd and inetd behave under this condition. > I be able to connect directly to the console. On network interfaces, I see no ip addresses. Likely to command "service netif stop" killing all processes dhclient A command "service netif start" will not start dhclient on network interfaces specified in rc.conf. As a result, I started in the console "service netif start" and the network appeared. Later, I will try to repeat the commands on the FreeBSD 9.1 -- Vladislav V. Prodan System & Network Administrator http://support.od.ua +380 67 4584408, +380 99 4060508 VVP88-RIPE