From owner-freebsd-questions Fri Sep 20 19:47:23 2002 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 A7AD137B401 for ; Fri, 20 Sep 2002 19:47:18 -0700 (PDT) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 507FE43E42 for ; Fri, 20 Sep 2002 19:47:18 -0700 (PDT) (envelope-from pete_m@pacbell.net) Received: from tulips ([63.194.99.42]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with SMTP id <0H2R0023ZP2TGA@mta5.snfc21.pbi.net> for freebsd-questions@freebsd.org; Fri, 20 Sep 2002 19:47:18 -0700 (PDT) Date: Fri, 20 Sep 2002 19:48:23 -0700 From: Pete Muller Subject: Re: Running 2 wireless cards To: freebsd-questions@freebsd.org Message-id: <002801c26119$5aae6350$6401a8c0@tulips> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Adam Weinberger wrote: >> tell me whether i have this wrong: you have 2 cards in one computer, at you're trying to get them both to communicate with a card in a laptop running in host mode? << Well... one at a time of course. :-) One of the cards (the 192.168.10.x network) is already in use as a link to a friend's house about 20 miles away (with an AP1000 midway). That entire card/network/interface functions perfectly. The second card/network (192.168.20.x) is the one I'm trying to get to work.... and yes: I'm just using my laptop to try and communicate with it. ============================ >> can you show your wicontrol scripts? and the output of "ifconfig -a"? and of "wicontrol -i wi0" and "wicontrol -i wi1". << Sure.... ----- start of wireless.sh (192.168.10) -----> #!/bin/sh # Run via the sh shell # Set the frequency here wicontrol -i wi0 -f 11 # Set the speed # Default setting is 2 (fixed standard) # 3 is auto rate select high wicontrol -i wi0 -t 3 # Set the station name wicontrol -i wi0 -s heidi # Set the SSID wicontrol -i wi0 -q tass2pete # Set the network name wicontrol -i wi0 -n tass2pete # Set BSS or ad-hoc mode wicontrol -i wi0 -p 1 #wicontrol -i wi0 -p 3 # Set encryption key and turn on encryption wicontrol -i wi0 -k xxxxx wicontrol -i wi0 -e 1 # Set the IP address and netmask ifconfig wi0 192.168.10.1 netmask 255.255.255.0 heidi# <----- end of wireless.sh (192.168.10) --- ----- start of wireless1.sh (192.168.20) -----> #!/bin/sh # Run via the sh shell # Set the frequency here wicontrol -i wi1 -f 5 # Set the speed # Default setting is 2 (fixed standard) wicontrol -i wi1 -t 5 # Set the station name wicontrol -i wi1 -s heidi # Set the SSID wicontrol -i wi1 -q shop2pete # Set the network name wicontrol -i wi1 -n shop2pete # Set BSS or ad-hoc mode #wicontrol -i wi1 -p 1 wicontrol -i wi1 -p 3 # Set the IP address and netmask ifconfig wi1 192.168.20.1 netmask 255.255.255.0 heidi# <----- end of wireless1.sh (192.168.20) --- ----- start of ifconfig -a output (wi adapters shown only)---------> wi0: flags=8843 mtu 1500 inet6 fe80::202:2dff:fe2b:4c6d%wi0 prefixlen 64 scopeid 0x6 inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255 ether 00:02:2d:2b:4c:6d media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid tass2pete stationname heidi channel 11 authmode NONE powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:64-bit wi1: flags=8843 mtu 1500 inet6 fe80::202:2dff:fe0a:dd7c%wi1 prefixlen 64 scopeid 0x7 inet 192.168.20.1 netmask 0xffffff00 broadcast 192.168.20.255 ether 00:02:2d:0a:dd:7c media: IEEE 802.11 Wireless Ethernet autoselect status: associated ssid shop2pete stationname heidi channel 5 authmode NONE powersavemode OFF powersavesleep 100 wepmode OFF weptxkey 1 <------ end of ifconfig -a output--------- ----- begin wicontrol -i wi0 output -----> NIC serial number: [ 01UT14337859 ] Station name: [ heidi ] SSID for IBSS creation: [ tass2pete ] Current netname (SSID): [ tass2pete ] Desired netname (SSID): [ tass2pete ] Current BSSID: [ 00:02:2d:2b:4c:62 ] Channel list: [ 2047 ] IBSS channel: [ 11 ] Current channel: [ 11 ] Comms quality/signal/noise: [ 21 76 55 ] Promiscuous mode: [ Off ] Port type (1=BSS, 3=ad-hoc): [ 1 ] MAC address: [ 00:02:2d:2b:4c:6d ] TX rate (selection): [ 3 ] TX rate (actual speed): [ 11 ] RTS/CTS handshake threshold: [ 2347 ] Create IBSS: [ Off ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time: [ 100 ] WEP encryption: [ On ] TX encryption key: [ 1 ] Encryption keys: [ xxxxx ][ ][ ][ ] <----- end wicontrol -i wi0 output------- ----- begin wicontrol -i wi1 output -----> NIC serial number: [ 00UT48371550 ] Station name: [ heidi ] SSID for IBSS creation: [ shop2pete ] Current netname (SSID): [ shop2pete ] Desired netname (SSID): [ shop2pete ] Current BSSID: [ 00:00:00:00:00:00 ] Channel list: [ 2047 ] IBSS channel: [ 5 ] Current channel: [ 5 ] Comms quality/signal/noise: [ 0 27 27 ] Promiscuous mode: [ Off ] Port type (1=BSS, 3=ad-hoc): [ 3 ] MAC address: [ 00:02:2d:0a:dd:7c ] TX rate (selection): [ 5 ] TX rate (actual speed): [ 2 ] RTS/CTS handshake threshold: [ 2347 ] Create IBSS: [ Off ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time: [ 100 ] WEP encryption: [ Off ] TX encryption key: [ 1 ] Encryption keys: [ ][ ][ ][ ] <----- end wicontrol -i wi0 output------- ============================ >> are either of the cards associating? Yes. >> if you assign wi1 an IP, say: ifconfig wi1 inet 192.168.20.222 can you then ping the ip? I can ping either card when telneted into the machine. Since the first card wi0 is in BSS mode, (it has to be to communicate with the AP1000 that is my repeater 10 miles away), I can't ping that card from my laptop unless I hop it over to ad-hoc mode (that works fine though if I do). I can't ping the second card from "outside" no matter what I've tried. :-( Thanks Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message