Date: Thu, 27 Dec 2018 04:42:18 -0800 From: David Wolfskill <david@catwhisker.org> To: freebsd-questions@freebsd.org, freebsd-wireless@freebsd.org Subject: Re: DHCP problems while connecting with a Wifi AP Message-ID: <20181227124218.GT22302@albert.catwhisker.org> In-Reply-To: <20181227122517.GA3208@c720-r314251> References: <20181227122517.GA3208@c720-r314251>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Thu, Dec 27, 2018 at 01:25:17PM +0100, Matthias Apitz wrote:
>
> Hello,
>
> I'm using my (Ubuntu) mobile device as AP to connect my FreeBSD laptop
> to the Internet. While this is working fine most of the times, I
> encounter in some situation problems getting an IP addr with DHCP from
> the mobile. It looks somehow like a race condition between WPA
> associating and DHCP (dhclient) asking to early (and giving up). Here is
> a typical situation when it does not work:
> ...
> Any ideas re/ the following question:
>
> 1. How could I delay the dhclient until connection is fine?
> 2. Why the BOOTP/DHCP are not logged by the ipfilter?
>
> This could smell as a problem caused by the AP, but any other device
> (for example an iPhone) connects fine and gets an IP addr.
>
> Thanks
>
> matthias
> ....
You might investigate the use of "synchronous_dhclient" in /etc/rc.conf:
synchronous_dhclient
(bool) Set to “YES” to start dhclient(8) synchronously at
startup. This behavior can be overridden on a per-interface
basis by replacing the “DHCP” keyword in the
ifconfig_⟨interface⟩ variable with “SYNCDHCP” or
“NOSYNCDHCP”.
FWIW, I use 'synchronous_dhclient="YES"' in my laptop's /etc/rc.conf,
(and have done since 2012/01/26 12:39:23).
Peace,
david
--
David H. Wolfskill david@catwhisker.org
Yes, Mr. Trump, your behavior IS a disgrace -- to put it very nicely.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAlwkyKpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy
OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2
Pckcugf8CAeKralLco48xtNjvAjNnmAlgPKnZS2BLbFI35GGxJTpXnlYeThbdDwL
2q+0zgZpakVMAquHfmpGavM04QH+vwb8nseIXS4i9X8qGoSdFtV3bJOwCnSLsTAv
hPLeVY1VXhzAi6DDwYGvOvO+Dt3/fnzvCcGZAIoHfD/gZ8077DK6DX2xRqcW6iER
ZIM6VP32S/2dFs1h1w0zt690S/2WXbxby8dF/7ft6cIwJjuLftFQxZPnE8wQG1go
SCOkuerNQXkCSrhHey7HNAetTem3q+l1qnd3IHHjRFDcYwtSE1Ac+1Onabl2hvac
Kf8mO0z7shEhFHbbOMQBwjCii1gQyw==
=hw90
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181227124218.GT22302>
