From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qso2F-00019E-G9 for garchives@archives.gentoo.org; Mon, 15 Aug 2011 03:40:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9004221C3BD; Mon, 15 Aug 2011 03:40:05 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 33DC921C049 for ; Mon, 15 Aug 2011 03:38:52 +0000 (UTC) Received: by ewy8 with SMTP id 8so2002663ewy.40 for ; Sun, 14 Aug 2011 20:38:52 -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 :content-type:content-transfer-encoding; bh=8nhw7KoSfB+oxTx/RmoUk4YeeoUAmmCKdePFLn1CQlE=; b=wbsnP0juOIodpe+G1bSyk1Nbl0jmySSWSJBCSEgYdxxENqXo2xlOSvsXBvQHzwDTBq f+BGAwswPxVZVjVykWQKO0nKqPsa3G/mCwn0LW/7Puxth5xq1cFIDlLrYt0mQzEaS3kc LG+Nm3wt/UGgpTXhLYb1mpi13XCIEmLAXwhzM= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.14.147.12 with SMTP id s12mr476656eej.140.1313379530908; Sun, 14 Aug 2011 20:38:50 -0700 (PDT) Received: by 10.14.100.140 with HTTP; Sun, 14 Aug 2011 20:38:50 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Aug 2011 20:38:50 -0700 Message-ID: Subject: Re: [gentoo-user] Assigning an IP in AP mode From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e89c87947b26fcabe348f6c1bf5b6705 >> I've added 'INTERFACES=3Dwlan0' to /etc/conf.d/hostapd, created the >> /etc/init.d/net.wlan0 link, and added the following to >> /etc/conf.d/net: >> >> modules_wlan0=3D( "!iwconfig" "!wpa_supplicant" ) >> config_wlan0=3D"192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.25= 5" >> >> When I start hostapd it tries to start net.wlan0 but I get "WARNING: >> net.wlan0 has started, but is inactive" and hostapd won't start. =A0If I >> don't add the INTERFACES line and start hostapd and then net.wlan0, >> hostapd starts but has no IP address and net.wlan0 gives me the same >> "inactive" error. > > I have the link inactive message (warning !=3D error) on my client > system, then it associates so the link becomes active, and then > dhcp's. I dont get that message on my AP machine tho, but dmesg has > "wlan0: link is not ready" Yeah the "inactive" warning isn't very informative. I get that message all the time when starting an interface in managed mode. > I have net.wlan0 started by init, not by hostapd, not sure if that > makes a difference. You start net.wlan0 in master mode with /etc/init.d/net.wlan0? If so, do you have a PSK? > What message does hostapd report? AFAIK, it shouldn't care about wlan0 > not having link. hostapd doesn't report any error and I don't think it should. Everything works fine as soon as I 'ifconfig wlan0 192.168.1.1' but I know there's a way to assign that IP automatically, I've just forgotten what it is. My description above is the trouble I run into when I try to set up that automatic IP assignment. As long as I issue ifconfig manually, everything works fine. >> I know I've had this working several times before but I always have a >> hard time remembering how I did it. =A0I've definitely never disabled >> iwconfig and wpa_supplicant before. > > That's from here; > http://www.gentoo-wiki.info/Wireless/libnl_Access_Point Is anyone here running hostapd? It's the Gentoo+hostapd combo that has me stumped. - Grant