Re: FreeBSD box as an Acess Point, again
Luke Schapel <[email protected]> Thu, 28 Nov 2002 09:31:09 +1030
| Newsgroups | gmane.network.wireless.bsd.general |
|---|---|
| Message-ID | <[email protected]> |
Mike
Mike Avery wrote:
> Fourteen faq's later... as well as a few questions here, I'm still not getting it.
> Maybe I'm just going out of my way to make this hard for myself...
>
> I have two wi driver cards, a D-Link DWL 650 and a Cabletron Roamabout that
> I use in a desktop machine with the PCI/PCMCIA adapter that came with the
> DWL-650. I'm getting the same results with both NICs.
Hostap will only work for Prism cards, so in your case the DWL 650 is
the go.
>
> My 4.7 FreeBSD system recognizes the cards, and I can use them to associate
> with a nearby AP. This suggests the basic hardware issues are covered.
>
> When I try to turn the cards into AP's, strange things happen.
>
> Here's the file I use to start the card...
> wicontrol -i wi0 -n wave
> wicontrol -i wi0 -s "peak2"
> wicontrol -i wi0 -k 0xabcdefghij -v 1
> wicontrol -i wi0 -f 1
> wicontrol -i wi0 -p 1
> #wicontrol -i wi0 -c 1
I have this command uncommented.
Heres mine:
wicontrol -f 7
wicontrol -p 1
wicontrol -c 1
wicontrol -s "Luke"
wicontrol -k "abcde"
wicontrol -e 1
ifconfig wi0 inet 10.11.12.99 netmask 0xffffff00 ssid BSD mediaopt hostap
> # enable wep security
> wicontrol -i wi0 -e 1
>
> # select the active wep key - note - it's case sensitive!
> wicontrol -i wi0 -T 1
>
> # set the IP address and netmask of the wireless device
> # (key changed to protect the innocent)
> ifconfig wi0 inet 192.168.3.1 netmask 255.255.255.0 ssid peak22 wepkey
> 0xbcdefghijk mediaopt hostap
>
> The result I get is:
> ifconfig: SIOCSIFMEDIA: Device not configured
Not good, if you do this with the DWL650 what do you get?
What does wicontrol -i wi0 show?
Heres mine:
NIC serial number: [ 99SA01000000 ]
Station name: [ Luke ]
SSID for IBSS creation: [ BSD ]
Current netname (SSID): [ BSD ]
Desired netname (SSID): [ BSD ]
Current BSSID: [ 00:30:ab:07:e5:fe ]
Channel list: [ 8191 ]
IBSS channel: [ 7 ]
Current channel: [ 7 ]
Comms quality/signal/noise: [ 0 81 27 ]
Promiscuous mode: [ Off ]
Port type (1=BSS, 3=ad-hoc): [ 6 ]
MAC address: [ 00:30:ab:07:e5:fe ]
TX rate (selection): [ 3 ]
TX rate (actual speed): [ 2 ]
RTS/CTS handshake threshold: [ 2347 ]
Create IBSS: [ On ]
Access point density: [ 1 ]
Power Mgmt (1=on, 0=off): [ 0 ]
Max sleep time: [ 100 ]
WEP encryption: [ On ]
TX encryption key: [ 1 ]
Encryption keys: [ adcde ][ ][ ][ ]
Note that nothing is accessing my AP ATM.
> When I run ifconfig, it tells me:
> wi0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> ether 00:40:05:de:d2:01
> media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps)
> status: no carrier
> ssid peak22 1:peak22
> stationname peak2
> channel 6 authmode OPEN powersavemode OFF powersavesleep 100
> wepmode MIXED weptxkey 1
> wepkey 1:64-bit
>
> It seems odd it's on channel 6 when I'd asked for 1, that it's at 2mbps when
> I'd wanted faster, and that there's no carrier.
Firstly the interface is not up. It is also missing the inet statement.
Heres mine:
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.11.12.99 netmask 0xffffff00 broadcast 10.11.12.255
ether 00:30:ab:07:e5:fe
media: IEEE 802.11 Wireless Ethernet autoselect <hostap>
(DS/2Mbps <hostap>)
status: associated
ssid BSD 1:BSD
stationname Luke
channel 7 authmode OPEN powersavemode OFF powersavesleep 100
wepmode MIXED weptxkey 1
wepkey 1:64-bit
Note that it is up and has an inet statement.
> Stumbling around with netstumbler turns up other AP's, but not the FBSD
> box.
>
> I started with the setup suggested in Steven Fettig's howto,
> http://www.stevenfettig.com/article.php?sid=29 and went on from there
> based on comments in bsd-wireless.
>
> Thanks for any advice you can give,
> Mike
I am running 4.6.2 with a Netgear MA401 and it all just works.
Good Luck
Cheers
Luke
--
*bsd wireless list, a bawug thing <http://www.bawug.org/>
[un]subscribe: http://lists.bawug.org/mailman/listinfo/bsd-wireless/