From owner-freebsd-questions@FreeBSD.ORG Wed May 9 13:44:54 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC0C816A406 for ; Wed, 9 May 2007 13:44:54 +0000 (UTC) (envelope-from cs@schug.net) Received: from schug.net (s0.schug.net [194.97.148.170]) by mx1.freebsd.org (Postfix) with ESMTP id 7EECD13C455 for ; Wed, 9 May 2007 13:44:54 +0000 (UTC) (envelope-from cs@schug.net) Received: by schug.net (Postfix, from userid 10000) id 08AA7C59F8; Wed, 9 May 2007 15:44:52 +0200 (CEST) Date: Wed, 9 May 2007 15:44:52 +0200 From: Christoph Schug To: Bram Schoenmakers Message-ID: <20070509134452.GB1421@voodoo.schug.net> References: <200705091231.18164.bramschoenmakers@xs4all.nl> <1A58CC26-5CAE-4834-9043-27040767CEF5@brooknet.com.au> <200705091331.56038.bramschoenmakers@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705091331.56038.bramschoenmakers@xs4all.nl> Organization: SpaceNet AG User-Agent: Mutt/1.5.13 OpenPKG/2-STABLE (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: Network interface restart 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, 09 May 2007 13:44:54 -0000 On Wed, May 09, 2007, Bram Schoenmakers wrote: > But as I said, I ran the script from a screen session, so that makes me wonder > why the execution was aborted. > > But is running '/etc/rc.d/netif restart'' known to cause problems? I think I > shouldn't have to use scripts like these just to change a setting on the > network interface. First, you should limit the operation to the interface in question. You can do this by adding the interface name as optional parameter. Nevertheless, any routing information regarding this interface gets dropped, in your case it most probably the interface of the default gateway. So, your interface will come back, but will be reachable only in its subnet. Something like | # /etc/rc.d/netif restart bge0 && /etc/rc.d/routing restart in a screen session should do the trick. -cs