Connecting to internet dhclient fails

I installed freebsd a few days ago and have been having difficulty connecting to the internet through my wireless. When I scan for networks, I can find my wireless network, but when I do
# ifconfig
the status line of the output says
Code:
status: no carrier
I tried ifconfig before using
# /etc/rc.d/netif start
and the output said
Code:
 status: associated
I then tried
# dhclient wlan0
and this failed, so I reran
# /etc/rc.d/netif start
# dhclient wlan0

and got the following as output:
Code:
 Wlan0: no link.............. giving up
Can anyone help me?
 
/etc/rc.conf:
Code:
 wlans_wpi0="wlan0"
ifconfig_wlan0="ssid linksys wepmode on weptxkey 1 wepkey ********** DHCP"
/etc/wpa_supplicant.conf:
Code:
 network={
   ssid="linksys"
   key mgmt=NONE
   wep_key0=**********
   wep_tx_keyidx=0
}
/boot/loader.conf:
Code:
if_wpi_load="YES"
legal.intel_wpi.license_ack=1
wlan_wep_load="YES"
wlan_tkip_load="YES"
wlan_ccmp_load="YES"
 
Have you tried changing the
Code:
ifconfig_wlan0="ssid linksys wepmode on weptxkey 1 wepkey ********** DHCP"
to
Code:
ifconfig_wlan0="ssid linksys wepmode on weptxkey 0 wepkey ********** DHCP"
 
I would suggest using wpa_supplicant.conf as that seems to solve many of the issues I had with wep.
Code:
# Let all users in wheel use wpa frontend
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

# Home network
network={
	ssid="myssid"
	key_mgmt=NONE
	wep_tx_keyidx=0
	wep_key0=my_hex_key
	priority=10
}

network={
	key_mgmt=NONE
}
and relevant rc.conf
Code:
#wireless
wlans_ral0="wlan0"
ifconfig_wlan0="WPA DHCP"
The first entry is my home wep network and the second is to connect with dhcp to any open network. That actually allows for wireless roaming if you move from spot to spot though you may have to wait to reconnect.
 
I tried what you suggested, and I still get
Code:
 status: no carrier
Even if I do
# ifconfig
before
# /etc/rc.d/netif start
Another thing which changed is that the ssid line of the output on ifconfig says:
Code:
 ssid "" channel 132 (5660 MHz 11a)
I performed a scan, and was able to find my wireless network.
 
I tried
# /etc/wpa_supplicant.conf
and got this error message:
Code:
 permission denied
so I tried
# /etc/wpa_supplicant -Dwpi -iWlan0 -c/etc/wpa_supplicant.conf
I tried this with 'wpi' and 'wpi0', but in both cases got
Code:
 unsupported driver: wpi
I then tried
# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
and got this as the output:
Code:
 Line 5: unknown network field 'key MGMT'.
Line 9: WPA-PSK accepted for key management, but no psk configured.
Line 9: failed to parse network block.
Line 12: unknown network field 'key MGMT'.
Line 13: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
 
zjames said:
I tried
# /etc/wpa_supplicant.conf
and got this error message:
Code:
 permission denied
That's correct. You're trying to execute a configuration file.


The correct way to start wpa_supplicant is:
# /etc/rc.d/wpa_supplicant start
 
zjames said:
I tried
# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
and got this as the output:
Code:
 Line 5: unknown network field 'key MGMT'.[/quote]

Missing an underscore.  But I missed where you said you wanted WEP, which is mostly useless.  What is your access point configured to accept?  If it's set to the current standard, WPA-PSK, all you need in [file]/etc/wpa_supplicant.conf[/file] is
[code]network={
        ssid="myssid"
        psk="soopersecretultrazippypsk"
}
 
Back
Top