Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Cannot get DHCP (pump) working, pump -i atho returns "Operation failed"< Next Oldest | Next Newest >
jonam Offline





Group: Members
Posts: 37
Joined: May 2006
Posted: June 19 2006,12:33 QUOTE

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
Back to top
Profile PM 
jonam Offline





Group: Members
Posts: 37
Joined: May 2006
Posted: June 20 2006,09:48 QUOTE

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
Back to top
Profile PM 
1 replies since June 19 2006,12:33 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Cannot get DHCP (pump) working

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code