From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 13:59:50 2005 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 F0B1E16A429 for ; Wed, 28 Dec 2005 13:59:50 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id D636543D82 for ; Wed, 28 Dec 2005 13:59:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id jBSDxg9L006054; Wed, 28 Dec 2005 15:59:42 +0200 Received: by flame.pc (Postfix, from userid 1001) id 5FCE91178B; Wed, 28 Dec 2005 15:58:29 +0200 (EET) Date: Wed, 28 Dec 2005 15:58:29 +0200 From: Giorgos Keramidas To: Yuan Jue Message-ID: <20051228135829.GA27810@flame.pc> References: <200512251530.21898.yuanjue02@gmail.com> <200512261107.45871.yuanjue02@gmail.com> <43AFB052.9070005@locolomo.org> <200512282132.13055.yuanjue02@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512282132.13055.yuanjue02@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Wireless NIC in FreeBSD 6.0 ? 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, 28 Dec 2005 13:59:51 -0000 On 2005-12-28 21:32, Yuan Jue wrote: > how can I configure the wireless interface to use DHCP in dhclient.conf? > like as follows? > > interface ath0 { > default { > script "/etc/dhclient-script"; > } > } You don't. An interface is not configured to use DHCP by modifying "dhclient.conf". The dhclient.conf file is used by dhclient to find out *options* for interfaces that are configured to use "DHCP" in the "/etc/rc.conf" file. The rc.conf file is the one you have to edit & make sure that it contains something like: ifconfig_ath0="DHCP" Then, when dhclient *is* started for 'ath0' it will read the file /etc/dhclient.conf looking for a matching set of options.