From owner-freebsd-questions@FreeBSD.ORG Wed May 9 12:38:53 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 1B2D116A400 for ; Wed, 9 May 2007 12:38:53 +0000 (UTC) (envelope-from mayday@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 67A7A13C447 for ; Wed, 9 May 2007 12:38:52 +0000 (UTC) (envelope-from mayday@gmx.net) Received: (qmail 29313 invoked by uid 0); 9 May 2007 12:12:11 -0000 Received: from 134.2.188.3 by www043.gmx.net with HTTP; Wed, 09 May 2007 14:12:11 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Wed, 09 May 2007 14:12:11 +0200 From: "Benjamin Sobotta" In-Reply-To: <200705091331.56038.bramschoenmakers@xs4all.nl> Message-ID: <20070509121211.78770@gmx.net> MIME-Version: 1.0 References: <200705091231.18164.bramschoenmakers@xs4all.nl> <1A58CC26-5CAE-4834-9043-27040767CEF5@brooknet.com.au> <200705091331.56038.bramschoenmakers@xs4all.nl> To: Bram Schoenmakers , freebsd-questions@freebsd.org X-Authenticated: #431110 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX181opx7dus1NghEwiH/wzDwYVXBBU3vfluAinY8Vh JxHFir0p2O+mnmklSs8ECHeiaIfkzG4dazvg== Content-Transfer-Encoding: 7bit X-GMX-UID: /9MkB6tqfW47bjzOcWVoPlxudmllcsUH Cc: 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 12:38:53 -0000 > Op woensdag 09 mei 2007, schreef Sam Lawrance: > > Hi, > > > > Could someone please point out where I made the mistake? > > > > When your network interface went down, you lost the connection, your > > shell lost the terminal and your script was terminated before it > > could finish doing what it was supposed to. Possibly you need to use > > something like "nohup" or "screen" (from ports), or have some other > > form of terminal available. > > Thanks for your answer. > > 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. > > Kind regards, > > -- > Bram Schoenmakers > Hi Bram You're exactly right. You don't need to run scripts like this. "ifconfig" will do what you want. As far as I can see, "ifconfig bge0 mtu 1472" should suffice. Cheers, Benjamin