From owner-freebsd-questions@FreeBSD.ORG Mon Nov 2 18:19:41 2009 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 3DDA5106566B for ; Mon, 2 Nov 2009 18:19:41 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2CCEE8FC0C for ; Mon, 2 Nov 2009 18:19:40 +0000 (UTC) Received: from eagle.syrec.org (c-24-6-221-126.hsd1.ca.comcast.net [24.6.221.126]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id nA2IJe18096486 for ; Mon, 2 Nov 2009 10:19:40 -0800 (PST) Message-ID: <4AEF22BD.9080500@rawbw.com> Date: Mon, 02 Nov 2009 10:19:41 -0800 From: Yuri User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to set up WEP network on 8.0 in rc.conf? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2009 18:19:41 -0000 I use this working script to start WEP network: ifconfig wlan0 create wlandev ath0 ifconfig wlan0 ssid "xyz abc" weptxkey 1 deftxkey 1 wepmode on wepkey 0xXXXXXXXXXX up dhcpcd wlan0 How do I write an equivalent line into rc.conf? Section 31.3.3.1.4 in http://www.freebsd.org/doc/en/books/handbook/network-wireless.html suggests this: # ifconfig /ath0/ ssid my_net wepmode on weptxkey 3 wepkey 3:0x3456789012 \ inet /192.168.1.100/ netmask /255.255.255.0/ So I wrote: ifconfig_ath0="ssid xyz\ abc weptxkey 1 deftxkey 1 wepmode on wepkey 0xXXXXXXXXXX DHCP" and it doesn't work. This line: ifconfig wlan0 create wlandev ath0 became necessary in 8.0 and it creates wlan0 device, which is missing when I use the above line in rc.conf. There's also a space in ssid. So what would be the correct rc.conf in my case? Yuri