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
--Nx8xdmI2KD3LNVVP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 27, 2018 at 01:25:17PM +0100, Matthias Apitz wrote: >=20 > Hello, >=20 > 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: > ...=20 > Any ideas re/ the following question: >=20 > 1. How could I delay the dhclient until connection is fine? > 2. Why the BOOTP/DHCP are not logged by the ipfilter? >=20 > 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. >=20 > Thanks >=20 > matthias > .... You might investigate the use of "synchronous_dhclient" in /etc/rc.conf: synchronous_dhclient (bool) Set to =E2=80=9CYES=E2=80=9D to start dhclient(8) s= ynchronously at startup. This behavior can be overridden on a per-interfa= ce basis by replacing the =E2=80=9CDHCP=E2=80=9D keyword in t= he ifconfig_=E2=9F=A8interface=E2=9F=A9 variable with =E2=80= =9CSYNCDHCP=E2=80=9D or =E2=80=9CNOSYNCDHCP=E2=80=9D. FWIW, I use 'synchronous_dhclient=3D"YES"' in my laptop's /etc/rc.conf, (and have done since 2012/01/26 12:39:23). Peace, david --=20 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. --Nx8xdmI2KD3LNVVP Content-Type: application/pgp-signature; name="signature.asc" -----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----- --Nx8xdmI2KD3LNVVP--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181227124218.GT22302>