From owner-freebsd-questions@FreeBSD.ORG Wed Jul 23 01:51:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE4991065673 for ; Wed, 23 Jul 2008 01:51:34 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 758C78FC0C for ; Wed, 23 Jul 2008 01:51:34 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl50-127.kln.forthnet.gr [77.49.177.127]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-4) with ESMTP id m6N1pKhM013319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 23 Jul 2008 04:51:26 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m6N1pJEm016701; Wed, 23 Jul 2008 04:51:19 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m6N1pI1j016700; Wed, 23 Jul 2008 04:51:18 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: ipfreak@yahoo.com References: <161366.84805.qm@web52110.mail.re2.yahoo.com> Date: Wed, 23 Jul 2008 04:51:17 +0300 In-Reply-To: <161366.84805.qm@web52110.mail.re2.yahoo.com> (gahn's message of "Tue, 22 Jul 2008 17:49:01 -0700 (PDT)") Message-ID: <873am1gyga.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m6N1pKhM013319 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.794, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.60, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd general questions Subject: Re: freebsd wireless question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2008 01:51:35 -0000 On Tue, 22 Jul 2008 17:49:01 -0700 (PDT), gahn wrote: > hello: > > i installed cisco aironet 802.11a/b/g wirless adapter on 6.3 and have > some issues. basically it works like charm with wpa2/dhcp, but it > doesn't work with wpa2/static ip address. > > here is my working configuration for rc.conf > > ifconfig_ath0="ssid home WPA DCHP" > > everything works: authentication, dhcp process, ip address binding to > the interface. > > but any time i change to: > > ifconfig_ath0="ssid home WPA inet 192.168.1.12 netmask 255.255.255.0" > > everything else works except the binding of the static ip address to > the interface. I haven't tried putting *all* the options in ifconfig_ath0 ever, but my old `wlan-home.sh' shell script for a WEP-only access point included among others: # network interface options export wlans_ath0="wlan0" export ifconfig_wlan0="inet 192.168.1.3/24" export defaultrouter='192.168.1.1' echo '## Stopping network interfaces.' /etc/rc.d/netif stop fxp0 && ifconfig fxp0 delete /etc/rc.d/netif stop ath0 && ifconfig ath0 delete echo '## Bringing up wireless interface.' /etc/rc.d/netif start ath0 # NOTE: Changing options with the wlan interface UP doesn't work for # all options, so bring it temporarily down, set things up and go. ifconfig wlan0 down ifconfig wlan0 ssid '********' channel 5 wepmode on weptxkey 1 \ wepkey '0x**************************' ifconfig wlan0 up ^^^^^ This last bit seems related to what you wrote. ^^^^^ I don't remember why I initially wrote it this way, but I think it was because putting _everything_ in ${ifconfig_wlan0} with a statically defined IP address didn't really work. I don't use a static IP address anymore and I don't have the WEP-only AP installed, having switched to WPA2/DHCP, but maybe that helps a bit with what you want to do?