From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 22:45:15 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 CD110106564A for ; Tue, 16 Mar 2010 22:45:15 +0000 (UTC) (envelope-from amijaresp@gmail.com) Received: from mail-fx0-f215.google.com (mail-fx0-f215.google.com [209.85.220.215]) by mx1.freebsd.org (Postfix) with ESMTP id 62BD08FC15 for ; Tue, 16 Mar 2010 22:45:15 +0000 (UTC) Received: by fxm7 with SMTP id 7so507663fxm.3 for ; Tue, 16 Mar 2010 15:45:14 -0700 (PDT) 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=4dxk39jz7gBJERWPnvmhz6o63nmD925NJsxvIU6gpBY=; b=quMR7dfSgXU/LoRFr15tRgNYzx9tbP9N/dztkE99+w+76vmopccX3AewOwAXr8LSVz ttSmtOae1vcl40wAP/jbkzYw+LkoSbo9jVKt1nQ2iHf5uvnltkOi9aTBeEvzeaJjVdMr KIoJRFliKa0xBlSnotdZ6zstxvtUWJSpAAhxs= 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=Z3X7FzkVnTtKCghvF2pF4I3HqcWLcRi7i7WdmsAohw+7HYApmrOxqzRMfP+MSI3jYv 8K7g1cJtEA7J18Rxbr6M5AAlbEzsvLlLpuK/4IvPpyXb/A8YHagkqIEcTAIS0YYUkvSk tOX1h4LRSmlYfVHEEso4x8vbAHwCAVuGM5mRQ= MIME-Version: 1.0 Received: by 10.239.134.148 with SMTP id 20mr1104432hbz.42.1268779514204; Tue, 16 Mar 2010 15:45:14 -0700 (PDT) In-Reply-To: <201003162307.58748.milu@dat.pl> References: <286906751003161350k31a6286bld97defd3711edd62@mail.gmail.com> <201003162307.58748.milu@dat.pl> Date: Tue, 16 Mar 2010 18:15:14 -0430 Message-ID: <286906751003161545u5bb97fadh3215303f193cb452@mail.gmail.com> From: Alberto Mijares To: Maciej Milewski Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: wlan0 + hostap + rc.conf 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: Tue, 16 Mar 2010 22:45:15 -0000 On Tue, Mar 16, 2010 at 5:37 PM, Maciej Milewski wrote: > Dnia wtorek, 16 marca 2010 o 21:50:05 Alberto Mijares napisa=C5=82(a): >> ifconfig_sis0=3D"up" >> wlans_ath0=3D"wlan0" >> create_args_wlan0=3D"wlanmode ap" >> ifconfig_wlan0=3D"ssid nombre channel X mode 11g up" >> cloned_interfaces=3D"bridge0" >> ifconfig_bridge0=3D"addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up= " >> >> However, when I run /etc/rc.d/netif restart, an error says: >> ifconfig: create: bad value >> the create command fails and everything related to the AP initialization= . >> When I run the command in the CLI it works fine >> # ifconfig wlan0 create wlandev ath0 wlanmode ap >> What could be wrong? > Try putting channel and mode definition in create_args_wlan0 not in > ifconfig_wlan0. I did, but doesn't work either. ifconfig_sis0=3D"up" ifconfig_wlan0=3D"up" wlans_ath0=3D"wlan0" create_args_wlan0=3D"wlanmode ap channel x mode 11g ssid kraken2" cloned_interfaces=3D"bridge0" ifconfig_bridge0=3D"addm wlan0 addm sis0 inet xxxx netmask xxxx up" Any other suggestion? Alberto Mijares