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 da...@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.
Description: PGP signature