From owner-freebsd-questions@FreeBSD.ORG Mon Jan 18 16:39:19 2010 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 71629106566B for ; Mon, 18 Jan 2010 16:39:19 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id F256A8FC24 for ; Mon, 18 Jan 2010 16:39:18 +0000 (UTC) Received: by ewy26 with SMTP id 26so3683832ewy.3 for ; Mon, 18 Jan 2010 08:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aN5ciFRlpk2rXQ67MgDmuwA8azh0WPylfXBpIwmni6M=; b=fvq4ZfXrjDowDHwSXlu23uJ+dG4OG4FGaH2x06/xuB6EvwaKcystRntT6ZawSggJys 4CBLaUKh/8yTbhR2rKgj3GegExjRngtVl50JQM7YJgXjq4tRSiPJinKhvx1oM1wMrWSO ClmEU7KBFX6mkF2GdaN6v5k7Pl8OxHQnVIUlw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jxC6a3hI3r47gjXYAvz3yVv8wQMKsz5OsaLRk5F329dTOMNak3lMl6zhKPITUtHDP6 oqapxX3BdDlDfzplkpKUIBOZ+afAY4sH5qjSGCMjBilQ0vKRCAp9/AiiWuws9ijxOHY5 Fb++K3CamUDoWL6+/yI/UuhjtX6GsvHvOWL6w= MIME-Version: 1.0 Received: by 10.213.98.205 with SMTP id r13mr3760075ebn.89.1263832756335; Mon, 18 Jan 2010 08:39:16 -0800 (PST) In-Reply-To: <4B548C6A.4070909@kukulies.org> References: <4B507B9A.3050803@kukulies.org> <3a142e751001150817x7b4da53fs16cebd2e097890b4@mail.gmail.com> <4B547396.7070902@kukulies.org> <1263831293.14794.14.camel@main.lerwick.hopto.org> <4B548C6A.4070909@kukulies.org> Date: Mon, 18 Jan 2010 16:39:16 +0000 Message-ID: <3a142e751001180839q61003c56x835a76a4f6c4b742@mail.gmail.com> From: Paul B Mahol To: Christoph Kukulies Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Craig Butler , =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= , freebsd-questions@freebsd.org Subject: Re: rum0 acting as an Access point (belkin router) 8.0 R 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: Mon, 18 Jan 2010 16:39:19 -0000 On 1/18/10, Christoph Kukulies wrote: > Craig Butler schrieb: >> On Mon, 2010-01-18 at 16:25 +0100, Samuel Mart=EDn Moro wrote: >> >>> in my rc.conf: >>> ifconfig_rum0=3D"DHCP wepmode on weptxkey 1 wepkey 1:0xBC45AD1BD5 ssid >>> ReseauWIFI" >>> >>> Maybe your problem is that wepkey is malformatted in your command >>> If not, I didn't try to understand, but I also had troubles with the >>> position of SSID keyword. >>> (ifconfig arg error, might be your problem) >>> (btw: I also had problem with ssid containing spaced characters) >>> >>> >>> Later, I tried to set it up as an hostap, it seems to work well. >>> But when I try to connect from an other computer, I'm unable to to join >>> the >>> network. >>> (running under 7.2, I compiled the kernel adding a define matching my >>> device, based on a similar (I hope so...) chipset) >>> >>> >>> good luck >>> >>> >>> Samuel Mart=EDn Moro >>> CamTrace >>> {EPITECH.} tek4 >>> >>> "Nobody wants to say how this works. >>> Maybe nobody knows ..." >>> Xorg.conf(5) >>> >>> >>> On Mon, Jan 18, 2010 at 3:43 PM, Christoph Kukulies >>> wrote: >>> >>> >>>> Paul B Mahol schrieb: >>>> >>>> On 1/15/10, Christoph Kukulies wrote: >>>> >>>>> >>>>>> I'm not sure wether syntax has changed but I wanted to cretae an wla= n >>>>>> acess point >>>>>> and tried various things. Under 7.0 I got it working with the >>>>>> following >>>>>> command >>>>>> >>>>>> ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE >>>>>> wepmode >>>>>> on wepkey 0xf00baf00ba weptxkey 1 channel 1 >>>>>> >>>>>> >>>>>> I tried this but got a socket error "Invalid argument". >>>>>> >>>>>> Then I tried (from an example in the rum (4) manpage):ifconfig wlan >>>>>> create wlandev rum0 10.0.0.1/24 mediaopt hostap CITYOFFICE wepmode o= n >>>>>> wepkey 0xf00baaf00baa weptxkey 1 channel 1 >>>>>> >>>>>> >>>>>> >>>>>> >>>>> Perhaps you want this one: >>>>> >>>>> ifconfig wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid >>>>> CITYOFFICE wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1 >>>>> >>>>> >>>>> >>>>> >>>> I tried this in rc.conf: >>>> >>>> ifconfig_rum0=3D"wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap = ssid >>>> CITYOFFICE wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1" >>>> >>>> I got this: >>>> >>>> rum0: flags=3D8843 metric 0 mt= u >>>> 2290 >>>> ether 00:11:50:cb:52:10 >>>> media: IEEE 802.11 Wireless Ethernet autoselect >>>> (autoselect >>>> ) >>>> status: no carrier >>>> >>>> >>>> Why "no carrier"? >>>> And I would expect more info on the interface like SSID and such. >>>> >>>> -- >>>> Christoph >>>> >>>> >>>> and got: >>>> >>>>>> wlan0 >>>>>> ifconfig: SIOCSIFMEDIA (media): Device not configured >>>>>> >>>>>> But suddenly the wlan0 device is there. >>>>>> >>>>>> Can anybody fill me in? >>>>>> >>>>>> -- >>>>>> Christoph >>>>>> >>>>>> >>>>>> >>>>>> >> >> Wireless changed on 8, you have to define wlans in rc.conf then set the >> > > That's why I'm asking :) > >> network up onto the appropriate wlan entry; >> >> example; >> >> wlans_wpi0=3D"wlan0" >> ifconfig_wlan0=3D"WPA DHCP" >> >> Regards >> >> Craig B >> >> > > Thanks Craig, and also Paul. It looks a bitt better now though still not > perfect. I don't see the SSID on the network yet > (I filled in a bogus wepkey for posting here, of course): > > rc.conf: > wlans_rum0=3D"wlan0" > network_interfaces=3D"lo0 rl0 wlan0" # List of network interfaces (or "au= to"). > ifconfig_lo0=3D"inet 127.0.0.1" # default loopback device configuration= . > ifconfig_rl0=3D"inet 172.27.4.219 netmask 255.255.248.0" > ifconfig_wlan0=3D"wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap > ssid Aachen Still incorrect, remove "wlan create wlandev rum0" > wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1" > defaultrouter=3D"172.27.2.116" > > ifconfig: > rum0: flags=3D8843 metric 0 mtu 2= 290 > ether 00:11:50:cb:52:10 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > wlan0: flags=3D8843 metric 0 mtu = 1500 > ether 00:11:50:cb:52:10 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 10 (2457 Mhz 11g) > country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid = 60 > bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 > protmode CTS bintval 0 > > Note, that I would like to build up an AP, not a peer to peer or WLAN > client. BTW rum(4) is crap in hostap mode. --=20 Paul B Mahol