[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wpa_supplicant and dhclient



On Tuesday 16 September 2008 16:41:53 Dominique Dumont wrote:
> Thierry Chatelet <tchatelet@free.fr> writes:
> > On Monday 15 September 2008 14:36:01 Dominique Dumont wrote:
> >> Andrei Popescu <andreimpopescu@gmail.com> writes:
> >> >> 2. Can wpa_supplicant and dhclient talk to each other so that
> >> >> dhclient doesn't start to send DHCP requests before the WPA
> >> >> connection is established but then after connection sends its
> >> >> requests in short intervalls?
> >> >
> >> > I think the roaming mode might be better suited for your needs. See
> >> > README.Debian for more info.
> >>
> >> No. DHCP is not accepted in roaming mode.
> >
> > Where did you get that from!!!!
>
> I tried and I got an explicit error message ;-)
>
> Only manual mode is accepted.
>
>
I see what you mean, but:
In /etc/network/interfaces you have to have "manual" at first but you have to 
add a line "default" as below

allow-hotplug ath0
iface ath0 inet manual
        wpa-driver wext
        wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
# this behaviour is used if no matching id_str is found in wpa_supplicant.conf
iface default inet dhcp

Then, as nothing is specified in wpa_supplicant.conf as far as static IP or 
dhcp, it will use the default setting ie dhcp.


Reply to: