From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Assigning an IP in AP mode
Date: Sun, 14 Aug 2011 20:38:50 -0700 [thread overview]
Message-ID: <CAN0CFw3+x=Cy_ND2epSTYbuSG1wbm61ZLkV1hG2KcP=LppQ_pA@mail.gmail.com> (raw)
In-Reply-To: <CAC=wYCE4xMB7VK-pBoiT5ELHR22nxNg975ZcTnxMW=emLN0daQ@mail.gmail.com>
>> I've added 'INTERFACES=wlan0' to /etc/conf.d/hostapd, created the
>> /etc/init.d/net.wlan0 link, and added the following to
>> /etc/conf.d/net:
>>
>> modules_wlan0=( "!iwconfig" "!wpa_supplicant" )
>> config_wlan0="192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"
>>
>> 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. If 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 != 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. I'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
next prev parent reply other threads:[~2011-08-15 3:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 2:11 [gentoo-user] Assigning an IP in AP mode Grant
2011-08-12 4:29 ` Adam Carter
2011-08-13 15:43 ` [gentoo-user] " James
2011-08-14 3:42 ` Grant
2011-08-14 3:41 ` [gentoo-user] " Grant
2011-08-15 1:45 ` Adam Carter
2011-08-15 3:38 ` Grant [this message]
2011-08-15 3:55 ` Adam Carter
2011-08-15 23:36 ` Grant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN0CFw3+x=Cy_ND2epSTYbuSG1wbm61ZLkV1hG2KcP=LppQ_pA@mail.gmail.com' \
--to=emailgrant@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox