From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 19:00:10 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 E669516A46F for ; Wed, 4 Jul 2007 19:00:10 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from host222.ipowerweb.com (host222.ipowerweb.com [66.235.210.10]) by mx1.freebsd.org (Postfix) with SMTP id B929F13C46C for ; Wed, 4 Jul 2007 19:00:10 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 11688 invoked from network); 4 Jul 2007 18:55:22 -0000 Received: from unknown (HELO demeter.hydra) (24.9.123.251) by host222.ipowerweb.com with SMTP; 4 Jul 2007 18:55:22 -0000 Received: from demeter.hydra (localhost [127.0.0.1]) by demeter.hydra (8.13.6/8.13.6) with ESMTP id l64J08GA044027 for ; Wed, 4 Jul 2007 13:00:09 -0600 (MDT) (envelope-from perrin@apotheon.com) Received: (from ren@localhost) by demeter.hydra (8.13.6/8.13.6/Submit) id l64J080W044026 for freebsd-questions@freebsd.org; Wed, 4 Jul 2007 13:00:08 -0600 (MDT) (envelope-from perrin@apotheon.com) X-Authentication-Warning: demeter.hydra: ren set sender to perrin@apotheon.com using -f Date: Wed, 4 Jul 2007 13:00:08 -0600 From: Chad Perrin To: FreeBSD Questions Message-ID: <20070704190008.GC43873@demeter.hydra> Mail-Followup-To: FreeBSD Questions References: <20070704052737.GB40018@demeter.hydra> <468B374D.3020202@boosten.org> <1183539018.1213.7.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1183539018.1213.7.camel@localhost> User-Agent: Mutt/1.4.2.2i 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 19:00:11 -0000 On Wed, Jul 04, 2007 at 09:50:18AM +0100, 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. > > 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. That sounds like it's probably what I need. Thank you! To clarify: I have several commonly-used network configs in my /etc/rc.config file, and often change which one I have commented out there, then restart with: # /etc/rc.d/netif restart With the revelation that /etc/rc.d/routing needs a restart, I think that probably solves the problem. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2);