LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-19-2009, 05:03 PM   #1
kureckam
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Unable to consistently get DHCP


I have a device I am setting up with wpa_supplicant to connect to an AP. I added the following to the /etc/network/interfaces file

Code:
auto lo
iface lo inet loopback

auto ath0
iface ath0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf.wpa_psk
occasionally when I reboot it will work, but often I get the message

Quote:
No DHCPOFFERS received.
No working leases in persistent database.
How can I clean this up?
 
Old 06-21-2009, 06:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,675
Blog Entries: 54

Rep: Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954
WLAN issues often are not one-dimensional but may involve interference from adjacent WLANs, other devices or construction materials, AP channel, device range and signal strength and from timings due to device configuration to how well the AP handles it. For example an AP may handle unencrypted connections quick, but APs may handle setting up WEP way quicker than say WPA-PSK. If by "how can I clean this up" you actually mean "how can I ensure getting a lease?" you should look at your configs and iw.* tools and dhclient output in the most verbose/debug mode possible to gather info first. Posting relevant information may help others help you. OTOH if you don't care for all of that you could set your dhclient.conf timeout and retry to some insane value or set up a cronjob to check and do whatever is necessary to try getting a lease again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install DHCP rpm heygokul Linux - Newbie 6 12-27-2008 03:30 AM
Unable to connect to DHCP Network WolfCub Debian 34 09-21-2007 03:20 AM
MD5 fails consistently MagicMan2k6 Linux - Software 1 07-24-2006 11:14 PM
Yast2 Backup Fails Consistently wmeler Linux - General 0 06-18-2004 05:10 PM
unable to get out of my subnet w/o dhcp wendallsan Linux - Networking 8 10-13-2003 03:52 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration