Bug 145269 - dhclient(8) fails to get IP address when used with wpa-psk
Summary: dhclient(8) fails to get IP address when used with wpa-psk
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2010-04-01 17:50 UTC by bitbucket63-it
Modified: 2019-11-28 23:52 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description bitbucket63-it 2010-04-01 17:50:07 UTC
dhclient fails to assign an IP address to wlan0. The WAP is using wpa-psk
for security and wpa_supplicant successfully associates to the AP. Wait
time on the machine in question exceeded 12 hours without the interface
being assigned an IP address. Using "/etc/rc.d/netif restart" failed to
resolve the issue.

tcpdump on the wlan0 interface showed it to be operational, outputting
broadcast packets between the AP and other hosts on the network.

A lease file for the wlan0 interface was apparently successfully created,
and showed the expected information for the network, including host IP
address, nameserver address, etc.

Forum postings suggested using synchronous dhcp and some reported success.
However on this machine that technique resulted in the system hanging on
boot waiting for dhclient. Research into dhclient configuration yielded
no suggestions for resolution.


A successful workaround is to configure the interface for WPA and static IP thus:
ifconfig_wlan0="WPA inet x.x.x.x/24"
and adding the appropriate information to resolv.conf.

A multihomed system may need to have the default route explicitly defined in rc.conf:
How-To-Repeat: Configure the wireless interface to use WPA and DHCP and reboot.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:37 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped