From owner-freebsd-questions@FreeBSD.ORG Mon Dec 26 03:05:17 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 4CA0916A41F for ; Mon, 26 Dec 2005 03:05:17 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAD7243D72 for ; Mon, 26 Dec 2005 03:05:07 +0000 (GMT) (envelope-from yuanjue02@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1056116nzo for ; Sun, 25 Dec 2005 19:05:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:organization:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=sgQBg420Tz7UgVjDoTbVDIvy4GpEYnYWf/MxKLnmtSVm3TY90IqjW3udD5pR/lHNMiqaAkUXty56FkSsfdSpi/bbuc/7gqkn4y4mtJnVjUYm3ab0oLAenspWSkz5XwZWkjmWCuP/uj6etLgB81ILqRsnNQaGsd1WepImpsiHqd4= Received: by 10.36.19.7 with SMTP id 7mr2825619nzs; Sun, 25 Dec 2005 19:05:06 -0800 (PST) Received: from ?166.111.123.93? ( [166.111.123.93]) by mx.gmail.com with ESMTP id 34sm4525225nza.2005.12.25.19.05.03; Sun, 25 Dec 2005 19:05:05 -0800 (PST) From: Yuan Jue Organization: Tsinghua UNIV. To: freebsd-questions@freebsd.org Date: Mon, 26 Dec 2005 11:07:45 +0800 User-Agent: KMail/1.8.3 References: <200512251530.21898.yuanjue02@gmail.com> <200512252205.33644.yuanjue02@gmail.com> <43AEB79D.9030200@locolomo.org> In-Reply-To: <43AEB79D.9030200@locolomo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512261107.45871.yuanjue02@gmail.com> Cc: 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: Mon, 26 Dec 2005 03:05:17 -0000 On Sunday 25 December 2005 23:15, Erik N=F8rgaard wrote: > Yuan Jue wrote: > > one more question > > since I use a fixed IP address in my dormitory and a dynamic IP address > > in the classroom or library, i need to change my local NIC configure fr= om > > time to time. In fact, I use the fixed IP address as my default setting, > > which is as follows: > > > > what is the right way to do it? or is there any better solution for my > > situation? > > Try to take a look at dhclient.conf(5) and dhclient(8) and set all > interfaces to be configured with dhcp. I think it should be posible to > configure default values so there is something to fall back on if a > lease is not obtained. > > Note that dhclient is new in FBSD 6, this is also why you had to take > down the other interface. The old dhclient would reset all dhcp > configured interfaces, the new doesn't, which is quite neat because > usually you would have the two interfaces connected to /different/ > networks. thanks for your explanations about DHCP in FreeBSD 6.0, although I still cannot find a way to config dhclient.conf to solve my problem :) instead, I figure out another way to work around. 1.ifconfig bge0 delete % this would shut my local NIC down totally 2.kldload if_ath dhclient ath0 then I can enjoy the wireless internet surfing :) antway, thank you again! =2D-=20 Best Regards. Yuan Jue