From owner-freebsd-questions@FreeBSD.ORG Thu Aug 18 20:10:38 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 C7FC816A420 for ; Thu, 18 Aug 2005 20:10:38 +0000 (GMT) (envelope-from pablo@lacnic.net) Received: from micron.lacnic.net.uy (lacnic.net.uy [200.40.228.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 212A743D64 for ; Thu, 18 Aug 2005 20:10:35 +0000 (GMT) (envelope-from pablo@lacnic.net) Received: from micron.lacnic.net.uy (localhost [127.0.0.1]) by micron.lacnic.net.uy (8.13.1/8.13.1) with ESMTP id j7IKZMVe052288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 Aug 2005 17:35:22 -0300 (UYT) (envelope-from pablo@micron.lacnic.net.uy) Received: (from pablo@localhost) by micron.lacnic.net.uy (8.13.1/8.13.1/Submit) id j7IKZJat052287; Thu, 18 Aug 2005 17:35:19 -0300 (UYT) (envelope-from pablo) Date: Thu, 18 Aug 2005 17:35:19 -0300 From: Pablo Allietti To: Bob Johnson Message-ID: <20050818203519.GA50690@micron.lacnic.net.uy> References: <20050818173851.GA43579@micron.lacnic.net.uy> <200508181009.11832.akbeech@gmail.com> <20050818191503.GB47654@micron.lacnic.net.uy> <54db4399050818124570326a45@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54db4399050818124570326a45@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: Freebsd X-Organization: LACNIC X-URL: http://lacnic.net/ X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on micron.lacnic.net.uy X-Lacnic.uy-MailScanner-Information: Please contact the ISP for more information X-Lacnic.uy-MailScanner: Found to be clean X-MailScanner-From: pablo@micron.lacnic.net.uy Cc: Beecher Rintoul , freebsd-questions@freebsd.org, Pablo Allietti Subject: Re: wireless DHCP + wep 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, 18 Aug 2005 20:10:39 -0000 On Thu, Aug 18, 2005 at 03:45:11PM -0400, Bob Johnson wrote: > On 8/18/05, Pablo Allietti wrote: i try the dhclient option before. but nothing the same message > > On Thu, Aug 18, 2005 at 10:09:11AM -0800, Beecher Rintoul wrote: > > > On Thursday 18 August 2005 09:38 am, Pablo Allietti wrote: > > > > Hi all i have a question. > > > > ok this work but not assign any ip ... and when i run the dhclient iwi0 > > > > in the /var/log/mesages give an error > > > > dhclient: Can't Attach interface iwi0 to bpf device /dev/bpf1: Network > > is down > > > > > > any help??? please > > > > > > > > > > > > i configure a Intel 2200 wireless card and the system detect ok and > > load > > > > in the start time. > > > > > > > > so. now i need to add wep Key and DHCP. > > > > > > > > is that possible to do in automatically. > > > > > > > > because rigth now i cant do dhcp and need to do a ifconfig blablabla > > > > wepkey xxxxxx wepmode 0 any time when i restart my laptop. > > > > > > In your /etc/rc.conf put: > > > > > > ifconfig_wi0="DHCP" > > > > > > Add the following file to /etc: start_if.wi0 > > > > > > Add your ifconfig settings to that file: > > > > > > ifconfig wi0 ssid whatever wepkey xxxxxx wepmode 0 > > > > > > Of course change wi0 to whatever driver your card uses. This worked for me > > and > > > should work when you reboot. > > > > > > Beech > > It appears that in 6.0, you will be able to simultaneously invoke DHCP > and include ifconfig options in the ifconfig_wi0 line of rc.conf, so > this will become even simpler. > > If you need to be able to move your laptop between networks with > different WEP keys (or WEP vs. no WEP), dhclient.conf might still be > the easiest method to use, although of course start_if.wi0 can be an > arbitrarily complex script. > > E.g. to support multiple networks in dhclient.conf you might say > > interface "wi0" { > media > "ssid home wepmode on weptxkey 1 wepkey 1:0x123ab", > "ssid work wepmode on weptxkey 3 wepkey 3:0xabcde01234fe", > "ssid - wepmode off"; > } > > Or something like that, give or take a syntax error or two. The dhcp > client will try each of those configurations in order until it finds > one that successfully returns a dhcp configuration. > > If you are using a version of FreeBSD that supports wpa_supplicant (6 > or 7, I think), then you would use its configuration file instead of > dhclient.conf, with of course a totally different syntax. > > - Bob > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ---end quoted text--- -- .- Pablo Allietti LACNIC