You are not logged in.

#1 2011-03-13 11:31:50

plitter
Member
Registered: 2010-10-07
Posts: 33

netcfg wpa_suppl doesn't work for me anymore

It happened after I had been away for some time from home and had added one network to my wpa_supplicant.conf and had been trying to get netcfg to be run at startup. Here is what I get.

$ sudo netcfg wpa_suppl
:: wpa_suppl up                                                          [BUSY] 
> DHCP IP lease attempt failed.                                [FAIL]

But when I do it "manually" it works

$ sudo wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf
Trying to associate with <mac_adress> (SSID='<My_ssid>' freq=2437 MHz)
Associated with <mac_adress>
WPA: Key negotiation completed with <mac_adress> [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to <mac_adress> completed (auth) [id=0 id_str=]

$ sudo dhcpcd wlan0
dhcpcd[5767]: version 5.2.11 starting
dhcpcd[5767]: wlan0: rebinding lease of 10.0.0.7
dhcpcd[5767]: wlan0: broadcasting for a lease
dhcpcd[5767]: wlan0: offered 192.168.2.8 from 192.168.2.1
dhcpcd[5767]: wlan0: acknowledged 192.168.2.8 from 192.168.2.1
dhcpcd[5767]: wlan0: checking for 192.168.2.8
dhcpcd[5767]: wlan0: leased 192.168.2.8 for infinity
dhcpcd[5767]: forked to background, child pid 5796

Here is my /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=network
update_config=1
network={
        ssid="<My_ssid>"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        psk=<generated_string_with_wpa_passphrase>
}

my /etc/network.d/wpa_suppl

CONNECTION='wireless'
DESCRIPTION='A wpa_supplicant configuration based wireless connection'
INTERFACE='wlan0'
SECURITY='wpa-config'
WPA_CONF='/etc/wpa_supplicant.conf'
IP='dhcp'

Offline

Board footer

Powered by FluxBB