From owner-freebsd-stable@FreeBSD.ORG Tue Feb 13 17:44:28 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 40A1516A406 for ; Tue, 13 Feb 2007 17:44:28 +0000 (UTC) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.freebsd.org (Postfix) with ESMTP id 29D2613C49D for ; Tue, 13 Feb 2007 17:44:28 +0000 (UTC) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 4CA6D1A000B17 for ; Tue, 13 Feb 2007 09:44:27 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at smtp.sd73.bc.ca Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k7BAGR5QiBzv for ; Tue, 13 Feb 2007 09:44:19 -0800 (PST) Received: from coal (s10.sbo [192.168.0.10]) by smtp.sd73.bc.ca (Postfix) with ESMTP id B30721A000B20 for ; Tue, 13 Feb 2007 09:44:19 -0800 (PST) From: Freddie Cash To: freebsd-stable@freebsd.org Date: Tue, 13 Feb 2007 09:44:18 -0800 User-Agent: KMail/1.9.5 References: <20070212163652.GA51709@lor.one-eyed-alien.net> <20070213023753.5a8fdb7c@loki.starkstrom.lan> <200702130544.58242.joao@matik.com.br> In-Reply-To: <200702130544.58242.joao@matik.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702130944.18871.fcash@ocis.net> Subject: Re: Desired behaviour of "ifconfig -alias" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2007 17:44:28 -0000 On Tuesday 13 February 2007 12:44 am, JoaoBR wrote: > On Monday 12 February 2007 22:37, Joerg Pernfuss wrote: > > On Mon, 12 Feb 2007 19:18:54 -0300 > > > > JoaoBR wrote: > > > I believe the problem here is that > > > > > > ifconfig_nic="inet IP" > > > ifconfig_nic="ether MAC" > > > > > > does not work on one line and does not work on two either, the > > > latter overrides and or you get an IP address with original MAC or > > > you get a new MAC without IP. > > > > Yes, you have to put 'ifconfig nic ether MAC' in /etc/start_if.nic > > for this to work afair. Same approach you need to set WEP etc on a > > wireless nic if you have ifconfig_nic="DHCP" in your rc.conf. > > if I am remembering well dhcp things you can put into dhclient.conf as > > interface "nic" { > media "ssid SSID nwkey KEY"; > } > > or so to be set before sending the dhcp request. /etc/wpa_supplicant.conf works much nicer for this. Put all the wireless settings in there (including unencrypted, WEP, or WPA) for as many different networks as you want. Add WPA to the ifconfig line in /etc/rc.conf. Then wpa_supplicant handles scanning for networks, associating to the access point, and bringing the interface "up". Only after the interface is "up" will dhclient be run. -- Freddie Cash fcash@ocis.net