Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Aug 2006 07:04:36 -1000
From:      "Tyler Gee" <geekout@gmail.com>
To:        Bill <runfreebsd@yahoo.com>
Cc:        FreeBSD <freebsd-amd64@freebsd.org>
Subject:   Re: ifconfig wi0 "10 number HEX key" arg ? (SOLVED)
Message-ID:  <6e01203b0608281004n57c17fb5lc1d0483182f803c7@mail.gmail.com>
In-Reply-To: <20060828061159.38507.qmail@web37510.mail.mud.yahoo.com>
References:  <6e01203b0608271102k1418bd23u1bb51af1d42d6a37@mail.gmail.com> <20060828061159.38507.qmail@web37510.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/27/06, Bill <runfreebsd@yahoo.com> wrote:
> --- Tyler Gee <geekout@gmail.com> wrote:
>
> > On 8/27/06, Bill <runfreebsd@yahoo.com> 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?

> #####################################################
>
> #!/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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6e01203b0608281004n57c17fb5lc1d0483182f803c7>