From owner-freebsd-questions@FreeBSD.ORG Sun Dec 25 15:15:47 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 AD42D16A41F for ; Sun, 25 Dec 2005 15:15:47 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id F192243D45 for ; Sun, 25 Dec 2005 15:15:46 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.16.2.1] (unknown [172.16.2.1]) by strange.daemonsecurity.com (Postfix) with ESMTP id A51C92E047; Sun, 25 Dec 2005 16:15:45 +0100 (CET) Message-ID: <43AEB79D.9030200@locolomo.org> Date: Sun, 25 Dec 2005 16:15:41 +0100 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= Organization: Locolomo.ORG User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050909) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yuan Jue References: <200512251530.21898.yuanjue02@gmail.com> <200512252047.35934.yuanjue02@gmail.com> <43AE95ED.9040407@locolomo.org> <200512252205.33644.yuanjue02@gmail.com> In-Reply-To: <200512252205.33644.yuanjue02@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 25 Dec 2005 15:15:47 -0000 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 from > 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. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2