From owner-freebsd-amd64@FreeBSD.ORG Mon Aug 28 17:34:43 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D117616A4F1 for ; Mon, 28 Aug 2006 17:34:43 +0000 (UTC) (envelope-from runfreebsd@yahoo.com) Received: from web37511.mail.mud.yahoo.com (web37511.mail.mud.yahoo.com [209.191.91.158]) by mx1.FreeBSD.org (Postfix) with SMTP id 1DF7643D7E for ; Mon, 28 Aug 2006 17:34:33 +0000 (GMT) (envelope-from runfreebsd@yahoo.com) Received: (qmail 96098 invoked by uid 60001); 28 Aug 2006 17:34:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jBH24nTnNWLlEv6LvzI653JzLLqDt95wqTK655z4D41oL4IleBVYTqL1Bdx4E7/iAqIDTGkg24EsKJZyaQ8ugcnM8M7arLs4SWptEfdj6D923xrdPHYPUDxJv3iWZ6qKovu1YA/QBZDfnOYDCA8PZYzlEcgorq2nN7g/25LWnuY= ; Message-ID: <20060828173433.96096.qmail@web37511.mail.mud.yahoo.com> Received: from [206.223.147.20] by web37511.mail.mud.yahoo.com via HTTP; Mon, 28 Aug 2006 10:34:33 PDT Date: Mon, 28 Aug 2006 10:34:33 -0700 (PDT) From: Bill To: Tyler Gee In-Reply-To: <6e01203b0608281004n57c17fb5lc1d0483182f803c7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: FreeBSD Subject: Re: ifconfig wi0 "10 number HEX key" arg ? (SOLVED) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 17:34:44 -0000 --- Tyler Gee wrote: > On 8/27/06, Bill wrote: > > --- Tyler Gee wrote: > > > > > On 8/27/06, Bill wrote: > > > > Hello Family, > > > > > > > > I'm on a wifi network where all the other Unix(like) and > Windows > > > > laptops seem to be able to pass a "ten" (10) digit number as > the > > > > "hex" key. > > > > > > > > In the "ifconfig" manpage for FreeBSD-6.1 it states, under the > > > > stanza for "wepkey" that the number must be 5 or 13 chars long. > > > > > > > > The number that is being used for the 10 digit key is: > > > > > > > > 1466466946 > > > > > > Try 0x1466466946 > > > > > > > Thanks Tyler, > > > > I actually had tried that with the "ifconfig" command and got an > > error/complaint and by a stroke of luck tried "wicontrol" with the > > above syntax and it took, so here is my little script that I run > and it > > works fine now, thanks for the timely nudge back into the right > > direction! > > > > I'm not exactly sure the "perfect" order of which to set these > params > > but it works as it is. I'm open for any enhancements to the script > :) > > Well, if it works that is great and I would go with it. :) I was > thinking wicontrol is deprecated, but can't actually remember if that > is true or not. Just curious, what was the command you were giving > to > ifconfig that was giving the error? > If I'm not mistaken, in place of the "wicontrol" line, I had: ifconfig wi0 wepkey 0x1466466946 I would then get a stdout error while the script was running. I don't have the exact error readily available, I'm not near the machine and if I log into it from where I'm at and edit the script to get the error I'm afraid I'll lose the connection during the attempt :) Will try it again when I get home tonight. > > ##################################################### > > > > #!/bin/sh > > # > > echo > > echo "Flushing old routes..." ; echo > > /sbin/route flush > > > > echo "Bringing down old interface..." ; echo > > /sbin/ifconfig wi0 down > > > > echo "Setting up SSID for AP..." ; echo > > ifconfig wi0 ssid wheatgrass > > > > echo "Turning on wepmode..." ; echo > > ifconfig wi0 wepmode on > > > > echo "Setting up static ip of 192.168.1.222" ; echo > > ifconfig wi0 192.168.1.222 broadcast 192.168.1.255 netmask > > 255.255.255.0 > > > > echo "Brining up interface wi0..." ; echo > > ifconfig wi0 up > > > > echo "Setting up wepkey..." ; echo > > wicontrol wi0 wepkey 0x1466466946 > > > > echo "Setting up route to access point of 192.168.1.1 " ; echo > > route add default 192.168.1.1 > > > > echo "Let's ping the GW at 192.168.1.1 three times..." ; echo > > ping -c3 192.168.1.1 > > > > ########################################################## > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > -- > ~Tyler > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com