Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

What can cause "dhclient/dhcpcd" to fail to get an address?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
sundialsvc4
Guru
Guru
Posts: 436
Joined: Thu Nov 10, 2005 12:50 am

What can cause "dhclient/dhcpcd" to fail to get an

  • Quote

Post by sundialsvc4 » Tue Jul 29, 2008 3:39 am

Can we start a summary thread here of:
  • What can cause "dhclient" or "dhcpcd" (or both of them...) to fail to get an IP-address from a particular router? (Basically, "no DHCPOFFERs.")
  • What can cause the "/etc/resolv.conf" file to fail to be updated?
Top
batistuta
Veteran
Veteran
User avatar
Posts: 1384
Joined: Fri Jul 29, 2005 3:54 pm
Location: Aachen

  • Quote

Post by batistuta » Tue Jul 29, 2008 10:10 am

let me start with the obvious reasons:
- No proper drivers for the physical device (WLAN card or Eth adapter)
- No connection (no eth cable, no wlan authentication). These can be tested with iwconfig ifconfig
- No dhcp server on router activated
Top
Ravak
n00b
n00b
Posts: 54
Joined: Fri Feb 03, 2006 3:53 pm
Location: GB/PL
Contact:
Contact Ravak
Website

  • Quote

Post by Ravak » Tue Jul 29, 2008 11:08 am

Also old/non standard dhcp server. In my case I needed to do some "voodoo" for dhcpcd (since by default it follows RFC2131) to work. I think I had to add -I ''. Even though the server kindly accepts me after two minutes of discover & requests so I also had to set up big timeout (5 minutes).
Many dhcp servers require that a hostname be set. A particular hostname can be set by calling dhcpcd with the -h <hostname> option. Using the -H option, dhcpcd can be configured to set the hostname that is recieved from the dhcpcd server. Moreover, dhcpcd can be configured to set the domainname of the client to the domainname supplied by the dhcp server with the -H option.
Some dhcp servers require that clients send two DHCP_DISCOVER messages before it will reply. dhcpcd will not do this by default and this behavior can be specified with the -S option.
Some dhcp servers use outdated or uncommon protocols and dhcpd can be configured to use these protocols. Detailed instructions can be found in the man page for dhcpcd.
from http://wiki.linuxquestions.org/wiki/Dhc ... mon_Issues
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic