From owner-freebsd-questions@FreeBSD.ORG Mon Sep 5 22:27:33 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 3813E16A41F for ; Mon, 5 Sep 2005 22:27:33 +0000 (GMT) (envelope-from algould@datawok.com) Received: from smtpauth05.mail.atl.earthlink.net (smtpauth05.mail.atl.earthlink.net [209.86.89.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3D5743D46 for ; Mon, 5 Sep 2005 22:27:32 +0000 (GMT) (envelope-from algould@datawok.com) Received: from [206.255.31.21] (helo=grokwell.org) by smtpauth05.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1ECPR5-0004w3-Q9; Mon, 05 Sep 2005 18:27:32 -0400 Date: Mon, 5 Sep 2005 17:27:34 -0500 From: "Andrew L. Gould" To: Maarten Sanders Message-ID: <20050905172734.157c326a@grokwell.org> In-Reply-To: <1125956095.771.14.camel@maarten> References: <1125956095.771.14.camel@maarten> X-Mailer: Sylpheed-Claws 1.9.11 (GTK+ 2.6.8; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69563f9fea00a6dd62bc327697a44832bedb44f326afdaf4efda350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 206.255.31.21 Cc: FreeBSD Questions Subject: Re: pccard, wi0, wep and DHCP 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, 05 Sep 2005 22:27:33 -0000 On Mon, 05 Sep 2005 23:34:55 +0200 Maarten Sanders wrote: > Hi, > > If used to have my wives laptop configured with rc.conf containing: > 'ifconfig_wi0="DHCP"' this works and brings up wi0. Since my town is > crowded with wardrivers I would like to use wep. Because my wife often > inserts the pcmcia card after booting I also like to have pccard > enabled. I can manually configure the card to use WEP. dhclient is > configured 'out of the box'. > > What I did after some googling: > > in /etc/rc.conf I added: > pccard_enable="YES" > pccard_flags="-z" > pccard_ifconfig="DHCP" > and I removed: > ifconfig_wi0="DHCP" > > I created a file: > /etc/start_if.wi0 > ifconfig wi0 nwkey 0xsomehex > > The wi card is listed in /etc/default/pccard.conf : > "BENQ" "AWL100 PCMCIA ADAPTER" > config auto "wi" ? > insert /etc/pccard_ether $device start > remove /etc/pccard_ether $device stop > so I think /etc/pccard_ether should be executed on boot/insertion. Now > this works not as I expect. When I manually run: > /etc/pccard_ether wi0 start > /etc/start_if.wi0 is not interpretted and the WEP key is not set so > dhclient fails. > > I guess I am missing a trivial point, but which? > > Maarten I use a script to configure my wireless pccard. A simplified version (without start, stop, etc) of a WEP, DHCP connection follows: #!/bin/sh ifconfig wi0 ssid ssidname nwkey 0x9999999999 dhclient wi0 Basically, you need to add the ssid information to your ifconfig line and execute dhclient after the interface has been configured with the WEP key. Good luck, Andrew Gould