Cannot get DHCP (pump) workingForum: Networking Topic: Cannot get DHCP (pump) working started by: jonam Posted by jonam on June 19 2006,12:33
I am running DSL 2.1b on an HP5700CT laptop with a DWL-G650 Wifi card (madwifi driver). After configuring ath0 using:wlanconfig ath0 create wlandev wifi0 wlanmode sta, and wpa_supplicant -B -c/etc/wpa_supplicant.conf -iath0 -Dmadwifi the card successfully connects to my Access point/ router. I then try to get an address allocated by typing: pump -i ath0 which returns, after a wait of at least 30 seconds with: Operation failed I have checked the /etc/dhcpc/resolv.conf file and it contains: search (my ISP name) nameserver 192.168.0.1 which I believe is correct after checking the pump man pages on the web. If instead of using pump, I manually configure the connection by: ifconfig ath0 192.168.0.100 netmask 255.255.255.0 up route add -net 192.168.0.0 netmask 255.255.255.0 ath0 route add default gw 192.168.0.1 ath0 I am briefly able to connect to the internet (from 10 mins to an hour) before the connection fails. I then have to issue a: ifconfig ath0 down before repeating the manual configuration above to get access back. I have tried using pump with many command line options including the suggestion in the DHCP Howto of adding a dummy hostname, ie pump -i ath0 -h box, but this doesn't work either. I have clicked on DHCP client in the DSL Control Panel, again to no effect. I have a Windows PC connected with a wired connection to the same router and it works fine with DHCP address allocation renewed every hour. Has anyone experienced a similar problem and know the answer? I have searched this forum and the web with no luck so far. Regards, Jonam Posted by jonam on June 20 2006,09:48
I found the answer to my problem. It appears that WPA supplicant has problems either interworking with the 2.1b kernel or with pump.Loading WPA supplicant as outlined in another thread results in an error message though it loads and attaches correctly to the AP. Running pump after connecting results in "Connection failed" and no possibility of getting internet access. If pump is not run and an IP address allocated manually to ath0, the connection times out at a random interval after connection typically within 10 mins. Repeating the same sequence of initialisations at boot-up using iwconfig to set up a WEP connection results in no error messages and pump correctly getting a DHCP lease. I don't know the reason for this sort of problem with WPA supplicant. I will add similar comments to the WPA supplicant thread. Regards, Jonam |