From owner-freebsd-questions@FreeBSD.ORG Wed May 9 10:31:22 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 8E69D16A400 for ; Wed, 9 May 2007 10:31:22 +0000 (UTC) (envelope-from bramschoenmakers@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 2B95813C44C for ; Wed, 9 May 2007 10:31:21 +0000 (UTC) (envelope-from bramschoenmakers@xs4all.nl) Received: from s040391.lan (a80-100-31-69.adsl.xs4all.nl [80.100.31.69]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id l49AVJpJ040047 for ; Wed, 9 May 2007 12:31:20 +0200 (CEST) (envelope-from bramschoenmakers@xs4all.nl) From: Bram Schoenmakers To: freebsd-questions@freebsd.org Date: Wed, 9 May 2007 12:31:16 +0200 User-Agent: KMail/1.9.6 X-Face: &[!|}QvdlkzFIu, |mW.\-Ci1t2d@CEo+#Q14@XM9*@`S, @l*5r-m!\, , kFc:ZlD62]6/>=?utf-8?q?=5B=0A=09Ovg=3BN=5Bqk=3B=60w6=3D5abys2!H+EUYcEDJ?==?utf-8?q?=25lo=26d67gO=2E!/=0A=09w?=@YD{YH]Ebe{@|(qtKgoum%{-=qXlf.+/`^E<'!m"?5d<&C(:B+p*KjP'-Knv!6U<=?utf-8?q?1W!=7EZ=0A=09P3ee-=7BfAb-i+MsJHM?=@ MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705091231.18164.bramschoenmakers@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner Subject: 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 10:31:22 -0000 Hi, I tried to reduce the MTU of a network interface on a remote FreeBSD 6.2 machine. So that means changing this line in rc.conf: ifconfig_bge0="inet xxx.xxx.xxx.xxx netmask 255.255.255.128" to ifconfig_bge0="inet xxx.xxx.xxx.xxx netmask 255.255.255.128 mtu 1472" Of course, there's a real IP address set. Then, I tried to restart the network interface: /etc/rc.d/netif restart which went horribly wrong. I lost connection and wasn't able to reconnect. I tried to run this in some 'fallback' script, which automatically should restore the old configuration and restarting the network interface again after 5 minutes. Even if that failed, it should reboot the machine. But somehow the script was aborted, although I ran it in a 'screen' session over SSH. So the last resort was a manual reboot, which started the interface with MTU 1472 just fine. Could someone please point out where I made the mistake? Thanks in advance, -- Bram Schoenmakers What is mind? No matter. What is matter? Never mind. (Punch, 1855)