dhclient wlan0 no link... giving up

Dear all,

this is the first time that I try to get networking working on FreeBSD (or install FreeBSD in general)
I've worked with it a bit on AWS but now I want the gem on my laptop and I turn to you in mild desperation:

as said:
Code:
dhclient wlan0
gives up with
Code:
no link... giving up

wpa_supplicant.conf:

Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
    ssid="(the ssid)"
    scan_ssid=0
    key_mgmt=NONE
    priority=5
}

rc.conf:

Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
hostname="free"
keymap="be.acc.kbd"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
ifconfig_wlan0="DHCP"
wlans_rtw880="wlan0"

I try to connect to an unsecured network,

if I execute:

Code:
ifconfig wlan0 up scan

it shows the available networks (and the one I want to connect to),

if I execute:

Code:
ifconfig wlan0 ssid (the ssid)

the ssid correctly shows up in

Code:
ifconfig

(on the interface wlan0)

but,

Code:
dhclient wlan0

doesn't work :(

I probably do something dumb somewhere but don't know what,

can someone give me a hand?

thanks!
 
ifconfig_wlan0="DHCP"
Maybe try using WPA DHCP instead, then reboot or run # service netif restart && service routing restart && service dhclient restart wlan0.

Code:
% grep wlan0 /etc/rc.conf
wlans_ath0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
create_args_wlan0="country TR regdomain ETSI"
 
  • Like
Reactions: cy@
Back
Top