From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 16:25:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FE2137B401 for ; Fri, 13 Jun 2003 16:25:23 -0700 (PDT) Received: from sccrmhc12.attbi.com (sccrmhc12.attbi.com [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8056F43FD7 for ; Fri, 13 Jun 2003 16:25:22 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by attbi.com (sccrmhc12) with ESMTP id <2003061323252101200985u0e>; Fri, 13 Jun 2003 23:25:21 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.7) with ESMTP id h5DNPL1V074956; Fri, 13 Jun 2003 19:25:21 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h5DNPKYU074953; Fri, 13 Jun 2003 19:25:20 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: John DeStefano References: <20030612132606.39698.qmail@web40601.mail.yahoo.com> From: Lowell Gilbert Date: 13 Jun 2003 19:25:20 -0400 In-Reply-To: <20030612132606.39698.qmail@web40601.mail.yahoo.com> Message-ID: <44ptlhmufz.fsf@be-well.ilk.org> Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: network settings auto-config X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 23:25:23 -0000 John DeStefano writes: > 1. (*) text/plain ( ) text/html > > Thanks Lowell; but a solution be to change something in /etc/rc.conf instead? No, for the problem you described, *configuring* the DHCP client through its configuration file is the way to go. > Pete pointed me toward /etc/rc.conf, which contains the following line: > ifconfig_dc0="DHCP" > Seeing this made me remember something: someone once told me that commenting this line out would keep DHCP from running. While that is somewhat true, it also killed my whole NIC interface! So the solution must be not to comment it out, but to change the variable value "DHCP" to something else. I've been searching for proper values but haven't seen them anywhere yet, but I did see the following in "man rc.conf": > pccard_ifconfig > (str) List of arguments to be passed to ifconfig(8) at boot > time or on insertion of the card (e.g. ``inet 192.168.1.1 > netmask 255.255.255.0'' for a fixed address or ``DHCP'' for a > DHCP client). > ... > It is possible to bring up an interface with DHCP by setting > the ifconfig_ variable to ``DHCP''. For instance, > to initialize the ed0 device via DHCP, it is possible to use > something like: > ifconfig_ed0="DHCP" > > So the line in my config file matches the man page, but the man page doesn't say what other variables are available that won't break the interface. You can statically configure the interface if you know the IP parameters, and they won't change. However, I don't think that is advisable in your case. Just keep your own DNS server by configuring DHCP to prefer it to the DHCP-provided ones, and you're all set.