From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 08:57:08 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 6C02216A46C for ; Wed, 4 Jul 2007 08:57:08 +0000 (UTC) (envelope-from peter@boosten.org) Received: from ra.egypt.nl (cp268254-a.landg1.lb.home.nl [213.51.103.48]) by mx1.freebsd.org (Postfix) with ESMTP id 276E513C45B for ; Wed, 4 Jul 2007 08:57:08 +0000 (UTC) (envelope-from peter@boosten.org) Received: from ra.egypt.nl (localhost.egypt.nl [127.0.0.1]) by ra.egypt.nl (Postfix) with ESMTP id 4B4BA3989C for ; Wed, 4 Jul 2007 10:57:07 +0200 (CEST) Received: by ra.egypt.nl (Postfix, from userid 501) id 1C27A3989A; Wed, 4 Jul 2007 10:57:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on ra.egypt.nl X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham version=3.2.1 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id F32C23988E for ; Wed, 4 Jul 2007 10:57:03 +0200 (CEST) Message-ID: <468B60DE.8020203@boosten.org> Date: Wed, 04 Jul 2007 10:57:02 +0200 From: Peter Boosten User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: FreeBSD Questions References: <20070704052737.GB40018@demeter.hydra> <468B374D.3020202@boosten.org> <1183539018.1213.7.camel@localhost> In-Reply-To: <1183539018.1213.7.camel@localhost> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000753-2, 07/03/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: "late filesystems" and switching net configs 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, 04 Jul 2007 08:57:08 -0000 Tom Evans wrote: > On Wed, 2007-07-04 at 07:59 +0200, Peter Boosten wrote: >> Chad Perrin wrote: >>> I have a couple of niggling little, er, "quirks" that I'd like to get >>> sorted out on my FreeBSD Thinkpad. >>> >>> 2. For some reason, if I use DHCP at all then want to switch back to my >>> static IP setup, I have to restart the computer to get it to access the >>> Internet. I haven't been able to figure out why. If I recall >>> correctly, I can switch to static IP on bge0 and access other systems >>> on the network, but I can't do anything related to the Internet. Yes, >>> by the way, I am checking to make sure the contents of resolv.conf are >>> correct. >>> >> Check your default gateway when switching from DHCP to static. IIRC a >> /etc/rc.d/netif stop/start will recreate the default route. >> >> Peter > > Not as I recall though. You will need to do a /etc/rc.d/routing restart > if your default router changes. The only time you might not need it is > when your routes are setup via DHCP. > Correction: netif start/stop will _NOT_ recreate the default route... it was a bit early for me :-) Peter -- http://www.boosten.org