Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2019 06:11:54 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Yuri <yuri@rawbw.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: dhclient fails to obtain the IP address from some WiFi networks
Message-ID:  <88ef3da7-b1a0-0fe7-9b52-175d0ec212ca@grosbein.net>
In-Reply-To: <b57a31e8-3d19-2a0d-9fbd-ded18301e7f1@rawbw.com>
References:  <1718f323-6c12-9a4c-ca70-11bd15cbb7c5@rawbw.com> <c6cf454e-2578-0afe-e6bf-58a760d82434@grosbein.net> <b57a31e8-3d19-2a0d-9fbd-ded18301e7f1@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
23.03.2019 22:07, Yuri wrote:

> On 3/23/19 3:07 AM, Eugene Grosbein wrote:
>> There was several important changes to dhclient not so long ago.
>> Please describe the case in detail, including exact branch and revision of your FreeBSD system
>> and relevant messages of "dmesg -a" output. And output of tcpdump too, if possible.
>>
> 
> System revision: 12.0-STABLE #1 r344209
> 
> 
> The only dmesg messages during one unsuccessful session were:
> 
> Mar 22 09:53:41 sw wpa_supplicant[3397]: Successfully initialized wpa_supplicant
> Mar 22 09:53:42 sw kernel: run0: firmware RT3071 ver. 0.33 loaded
> Mar 22 09:53:51 sw wpa_supplicant[3398]: wlan0: Trying to associate with 68:bc:1c:c8:26:4e (SSID='xx' freq=5805 MHz)
> Mar 22 09:53:51 sw wpa_supplicant[3398]: Failed to add supported operating classes IE
> Mar 22 09:53:52 sw wpa_supplicant[3398]: wlan0: Associated with 68:bc:1c:c8:26:4e
> Mar 22 09:53:52 sw kernel: wlan0: link state changed to UP
> Mar 22 09:53:52 sw wpa_supplicant[3398]: wlan0: CTRL-EVENT-CONNECTED - Connection to 68:bc:1c:c8:26:4e completed [id=1 id_str=]
> Mar 22 09:55:15 sw dhclient[3435]: New IP Address (wlan0): 10.99.52.90
> Mar 22 09:55:15 sw dhclient[3436]: New Subnet Mask (wlan0): 255.255.255.0
> Mar 22 09:55:15 sw dhclient[3437]: New Broadcast Address (wlan0): 10.99.52.255
> Mar 22 09:55:15 sw dhclient[3438]: New Routers (wlan0): 10.99.52.1
> Mar 22 09:55:16 sw dhclient[3440]: New Routers (wlan0): 10.99.52.1
> Mar 22 09:55:42 sw wpa_supplicant[3398]: wlan0: CTRL-EVENT-DISCONNECTED bssid=68:bc:1c:c8:26:4e reason=3 locally_generated=1
> Mar 22 09:55:42 sw kernel: wlan0: link state changed to DOWN
> 
> tcpdump isn't possible at this time.
> But everything that dhclient was sending is in kdump files.

You used kdump without -E flag, so there are no ktrace timestamps in the files and this makes them not very useful.
And kdump's output is always harder to read. Next time please create full traffic capture using:

tcpdump -nps0 -i wlan0 -w file.pcap

There are no signs that dhclient fails to process answers. Contrary, there are signs
that problem is at lower level, perhaps the driver run(4) is guilty:
dhclient does not obtain an answer from the network at all.

If you can, please try another WiFi USB device, not Ralink-based, so another driver would be used.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88ef3da7-b1a0-0fe7-9b52-175d0ec212ca>