From owner-freebsd-questions@FreeBSD.ORG Thu Jun 22 11:51:31 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B963116A474 for ; Thu, 22 Jun 2006 11:51:31 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from overlord.navalradio.cl (overlord.navalradio.cl [201.236.67.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11C7C43D53 for ; Thu, 22 Jun 2006 11:51:30 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from [192.168.0.4] (ppp106-19.lns1.hba1.internode.on.net [150.101.106.19]) (authenticated bits=0) by overlord.navalradio.cl (8.13.4/8.13.4) with ESMTP id k5MBphNL015701; Thu, 22 Jun 2006 07:51:45 -0400 (CLT) (envelope-from mikhailg@webanoide.org) Message-ID: <449A8433.7070100@webanoide.org> Date: Thu, 22 Jun 2006 21:51:15 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 To: dick hoogendijk References: <20060622131443.598cd7ae.dick@nagual.st> In-Reply-To: <20060622131443.598cd7ae.dick@nagual.st> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-99.8 required=5.0 tests=AWL,USER_IN_WHITELIST autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on overlord.navalradio.cl Cc: fbsdq Subject: Re: dhcp resolv.conf and loading priority of network cards 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: Thu, 22 Jun 2006 11:51:31 -0000 dick hoogendijk wrote: > I have tow nics: a re0 (cabled) and an ath0 (wifi) card. I want the > latter to use dhcp like this: > > defaultrouter="192.168.11.1" > hostname="arwen.nagual.st" > ifconfig_re0="192.168.11.29 netmask 255.255.255.0" > ifconfig_ath0="dhcp ssid air01 nwkey 0xc1e1639b753021ab6d64be2575 > hidessid authmode shared" > > What happens is that the ath0 card gets loaded first (not wanted!) plus > the dhcp setting changes my resolv.conf (not wanted either). > > How do I get this changed? re0 first, than my ath0 and NO changes to > resolv.conf? > > System: freebsd-6.1R > Not sure about initialising interfaces in specific order but if you don't want to accept changes from a DHCP then: man dhclient.conf (look at supersede) Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B