Re: wpasupplicant_0.4.8-1 problem
On 4/3/06, Christopher Nelson <chris@cavein.org> wrote:
> try making that wpa_conf a wpa-conf instead and try again. At least,
> that's how I have it in my /etc/networking/interfaces
> I'm using wpa_supplicant.conf and wep right now and it's working.
My system is sid. I have ifplugd and wpasupplicant installed.
My wlan0 connects without any problem with the following
/etc/network/interfaces file
lvgdell600m:/mnt/wind/software/Linux/dell_sid# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# wireless interface
auto wlan0
iface wlan0 inet dhcp
wireless_essid mohan
wireless_key XXXXXXXXXX
wireless_mode managed
post-up ifmetric wlan0 5
But I thought to use wpasupplicant so that it can work, where there is
no wep Hotspot.
Hence I installed wpasupplicant. It was working before the new
wpasupplicant version 0.4.8-1 installed. I have also copied
/etc/wpa_supplicant.conf.dpkg-bak file to /etc/wpa_supplicant.conf.
I have the following /etc/network/interfaces.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
# wireless interface
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
post-up ifmetric wlan0 5
I corrected line wpa-conf as said.
I am giving below /etc/wpa_supplicant.conf
lvgdell600m:/mnt/wind/software/Linux/dell_sid# cat /etc/wpa_supplicant.conf
# Minimal /etc/wpa_supplicant.conf to associate with open
# access points. Please see
# /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz for more
# complete configuration parameters.
#
# Also see the other files in /usr/share/doc/wpasupplicant/examples/ for
# specific configuration examples.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
### Example of basic WPA-PSK secured AP
#network={
# ssid="ournet"
# psk="w243sd5f324asdf5123sadf54324"
#}
# Single key Hex WEP
network={
ssid="mohan"
key_mgmt=NONE
wep_key0=XXXXXXXXXX
wep_tx_keyidx=0
priority=5
}
### Associate with any open access point
### Scans/ESSID changes can be done with wpa_cli
network={
ssid=""
key_mgmt=NONE
}
but still wlan0 is not getting connected. I get in log as below
Apr 4 11:54:37 localhost ifplugd(wlan0)[4649]: client: Internet
Software Consortium DHCP Client 2.0pl5
Apr 4 11:54:37 localhost ifplugd(wlan0)[4649]: client: Copyright
1995, 1996, 1997, 1998, 1999 The Internet Software Consor
tium.
Apr 4 11:54:37 localhost ifplugd(wlan0)[4649]: client: All rights reserved.
Apr 4 11:54:37 localhost ifplugd(wlan0)[4649]: client: Please
contribute if you find this software useful.
Apr 4 11:54:37 localhost ifplugd(wlan0)[4649]: client: For info,
please visit http://www.isc.org/dhcp-contrib.html
Apr 4 11:54:38 localhost dhclient: Listening on LPF/wlan0/00:90:4b:1b:5a:b7
Apr 4 11:54:38 localhost dhclient: Sending on LPF/wlan0/00:90:4b:1b:5a:b7
Apr 4 11:54:38 localhost dhclient: Sending on Socket/fallback/fallback-net
Apr 4 11:54:38 localhost dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 7
Apr 4 11:54:38 localhost ifplugd(wlan0)[4649]: client: Listening on
LPF/wlan0/00:90:4b:1b:5a:b7
Apr 4 11:54:38 localhost ifplugd(wlan0)[4649]: client: Sending on
LPF/wlan0/00:90:4b:1b:5a:b7
Apr 4 11:54:38 localhost ifplugd(wlan0)[4649]: client: Sending on
Socket/fallback/fallback-net
Apr 4 11:54:38 localhost ifplugd(wlan0)[4649]: client: DHCPDISCOVER
on wlan0 to 255.255.255.255 port 67 interval 7
Apr 4 11:54:45 localhost dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 8
Apr 4 11:54:45 localhost ifplugd(wlan0)[4649]: client: DHCPDISCOVER
on wlan0 to 255.255.255.255 port 67 interval 8
Apr 4 11:54:53 localhost dhclient: No DHCPOFFERS received.
Apr 4 11:54:53 localhost dhclient: No working leases in persistent database.
Apr 4 11:54:53 localhost ifplugd(wlan0)[4649]: client: No DHCPOFFERS received.
Apr 4 11:54:53 localhost ifplugd(wlan0)[4649]: client: No working
leases in persistent database.
Apr 4 11:54:53 localhost dhclient: Exiting.
Apr 4 11:54:53 localhost ifplugd(wlan0)[4649]: client: Exiting.
Apr 4 11:54:53 localhost ifplugd(wlan0)[4649]: client: Failed to
bring up wlan0.
Apr 4 11:54:53 localhost ifplugd(wlan0)[4649]: Program executed successfully.
Can you point out where am I going wrong?
How wpasupplicant is started in the new scheme of things? entry in
/etc/network/interfaces is sufficient?
--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042
Reply to: