From owner-freebsd-stable@FreeBSD.ORG Fri Sep 2 22:05:13 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55A3C106566B for ; Fri, 2 Sep 2011 22:05:13 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 229C58FC15 for ; Fri, 2 Sep 2011 22:05:12 +0000 (UTC) Received: by iadx2 with SMTP id x2so4666365iad.13 for ; Fri, 02 Sep 2011 15:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=1JFy8p7bE+dip5HPP5wtR4MvdSwEzTvVS3G0MlJt2lI=; b=w0YvNeyLmKC9lD04r1DPyTRdEfFARD1vxqCehPvytpbtK0s47iHK8cQyAyi7cg1c+Y KHwQm5yqrQE+RvL/cVceY265X7LP82glzYeA6RL1v//W8Dho2CZUohV5oar4On7LUmHP vdSaUPerqPokpoJaU+WypeseKxOMY4/20YhJU= MIME-Version: 1.0 Received: by 10.231.57.10 with SMTP id a10mr2784725ibh.70.1315001112502; Fri, 02 Sep 2011 15:05:12 -0700 (PDT) Received: by 10.231.149.204 with HTTP; Fri, 2 Sep 2011 15:05:12 -0700 (PDT) In-Reply-To: <4E614034.6070300@mgwigglesworth.net> References: <4E614034.6070300@mgwigglesworth.net> Date: Fri, 2 Sep 2011 15:05:12 -0700 Message-ID: From: Kevin Oberman To: mailinglistmember@mgwigglesworth.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: wlan0 rc.conf setup does not assign static ip on 8.2-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2011 22:05:13 -0000 On Fri, Sep 2, 2011 at 1:44 PM, Martes G Wigglesworth wrote: > > The system has been giving me some issues with the ifconfig commands afte= r > an unstable world upgrade from 8.1-PRERELEASE. > > However, after re-installing the kernel all commands result in the > appropriate functionality, except for wlan0 devices being assigned their > static ip address from the rc.conf script. > > The device becomes active, and registers as an access point, when using > hostap mode, having the > desired ssid, however, no IP address is ever issues during the rc.conf > setup process. > > Example: > (with hostapd activated on boot) > wlan0: flags=3D8843 =A0metric 0 m= tu 1500 > =A0 =A0 =A0 =A0ether 00:1b:2f:37:02:46 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > =A0 =A0 =A0 =A0status: running > =A0 =A0 =A0 =A0ssid wireless2 channel 1 (2412 MHz 11g) bssid 00:1b:2f:37:= 02:46 > =A0 =A0 =A0 =A0country US ecm authmode WPA privacy MIXED deftxkey 2 > =A0 =A0 =A0 =A0AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 23 scanvalid 6= 0 > =A0 =A0 =A0 =A0protmode CTS wme burst dtimperiod 1 -dfs > > (without hostapd activated on boot) > wlan0: flags=3D8843 =A0metric 0 m= tu 1500 > =A0 =A0 =A0 =A0ether 00:1b:2f:37:02:46 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > =A0 =A0 =A0 =A0status: running > =A0 =A0 =A0 =A0ssid wrouter0 channel 1 (2412 MHz 11g) bssid 00:1b:2f:37:0= 2:46 > =A0 =A0 =A0 =A0country US ecm authmode OPEN privacy OFF txpower 23 scanva= lid 60 > =A0 =A0 =A0 =A0protmode CTS wme burst dtimperiod 1 -dfs > > rc.conf section for this device is as follows: > > wlans_ath0=3D"wlan0" > create_args_wlan0=3D"wlanmode hostap" > ifconfig_wlan0=3D"inet 192.168.200.1 netmask 255.255.0.0 ssid " " > mode 54g channel 1" > > > However, all works perfectly, if I simply assign the intended ip address > to the wlan0 device. > > Any input on this? The first thing I noticed was the multiple quotation marks and the incorrect mode. Does it work better as: ifconfig_wlan0=3D"inet 192.168.200.1 netmask 255.255.0.0 ssid wrouter0 mode 11g channel 1" or, to make it cleaner: ifconfig_wlan0=3D"inet 192.168.200.1/16 ssid wrouter0 mode 11g channel 1" Will the AP be routed or bridged? If it is bridged, there is no need for it to have an address. --=20 R. Kevin Oberman, Network Engineer - Retired E-mail: kob6558@gmail.com