Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2001 03:49:22 -0500
From:      Jason Deraleau <jldera@mac.com>
To:        freebsd-mobile@freebsd.org
Subject:   Ad-hoc ka-put :)
Message-ID:  <CEADDC98-ED4A-11D5-A946-0003931A551A@mac.com>

next in thread | raw e-mail | index | archive | help

Ok, gonna give this another try. I've just installed a netgear MA301/401 
combo in my FreeBSD box. I compiled the wi driver into my kernel, the 
system boots and detects it. I then give the wi0 interface a 
192.168.1.1/24 ip address. On my other machine, an iBook using an 
Airport card, I am configuring the interface with a 192.168.1.5/24 ip 
address. I'm trying to get the two computers to talk to each other in 
ad-hoc mode, though if I can get the BSD box to pretend it's a base 
station that would be the most ideal situation. BSD wicontrol results:
-----------------------------------------------------------------------
NIC serial number:                      [ 99SA01000000 ]
Station name:                           [ wlan ]
SSID for IBSS creation:                 [ wlan ]
Current netname (SSID):                 [ wlan ]
Desired netname (SSID):                 [ wlan ]
Current BSSID:                          [ 00:00:00:00:00:00 ]
Channel list:                           [ 2047 ]
IBSS channel:                           [ 11 ]
Current channel:                        [ 11 ]
Comms quality/signal/noise:             [ 92 156 3 ]
Promiscuous mode:                       [ Off ]
Port type (1=BSS, 3=ad-hoc):            [ 3 ]
MAC address:                            [ 00:30:ab:09:48:01 ]
TX rate (selection):                    [ 3 ]
TX rate (actual speed):                 [ 11 ]
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:                         [ Off ]
TX encryption key:                      [ 1 ]
Encryption keys:                        [  ][  ][  ][  ]
-----------------------------------------------------------------------

And an ifconfig:
-----------------------------------------------------------------------
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
         ether 00:30:ab:09:48:01
         media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps 
<adhoc>)
         status: associated
         ssid wlan
         stationname wlan
         channel 11 authmode NONE powersavemode OFF powersavesleep 100
         wepmode OFF weptxkey 1
-----------------------------------------------------------------------

So, I can see the wi0 is getting the right IP information, and that it's 
using channel 11 and is in ad-hoc mode. So now, let's check routing:
-----------------------------------------------------------------------
    route to: 192.168.1.5
destination: 192.168.1.0
        mask: 255.255.255.0
   interface: wi0
       flags: <UP,DONE,CLONING>
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     
expire
        0         0         0         0         0         0      
1500      -485
-----------------------------------------------------------------------


This is my first experience configuring BSD for 802.11b, but I am quite 
familiar with it on the Mac. So, on the Mac, I'm creating a computer to 
computer network (i.e. ad-hoc), naming it wlan, not entering a password, 
and choosing channel 11. Here's an ifconfig for the Airport card:
-----------------------------------------------------------------------
en1: flags=8863<UP,BROADCAST,b6,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255
         ether 00:30:65:09:9b:26
         media: autoselect status: active
         supported media: autoselect
-----------------------------------------------------------------------

and a route:
-----------------------------------------------------------------------
    route to: 192.168.1.1
destination: 192.168.1.0
        mask: 255.255.255.0
   interface: en1
       flags: <UP,DONE,CLONING>
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     
expire
        0         0         0         0         0         0      
1500       -43
-----------------------------------------------------------------------


So, on both interfaces, routing and actual interface configuration looks 
good. I know the Airport card is perfect, the card in the BSD box should 
be working, it's brand new, but I am not 100% sure, but I'm not thinking 
it's a hardware issue. When I have the card in ad-hoc mode, it's link 
light is solid green, while if i do a wicontrol -p 1, it starts blinking 
green. Neither machine can reach the other. Does anyone have any 
suggestions or ideas for me? It's highly appreciated.

Thanks,

Jason Deraleau
jldera@mac.com
http://homepage.mac.com/jldera


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CEADDC98-ED4A-11D5-A946-0003931A551A>