DHCP problems while connecting with a Wifi AP
david at catwhisker.org
Thu Dec 27 12:42:24 UTC 2018
On Thu, Dec 27, 2018 at 01:25:17PM +0100, Matthias Apitz wrote:
> 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.
You might investigate the use of "synchronous_dhclient" in /etc/rc.conf:
(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
FWIW, I use 'synchronous_dhclient="YES"' in my laptop's /etc/rc.conf,
(and have done since 2012/01/26 12:39:23).
David H. Wolfskill david at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 618 bytes
Desc: not available
More information about the freebsd-questions