Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP: Which to use and why - dhclient or dhcpcd

Reply
Thread Tools Display Modes

DHCP: Which to use and why - dhclient or dhcpcd

 
 
buck
Guest
Posts: n/a

 
      06-18-2006, 06:26 PM
Cross/multi posted to alt.linux.slakware and comp.os.linux.networking.
Not posted to alt.os.linux.slackware because there are already plenty
of a-holes in my life.

I wish to "demand" my old IP from my ISP when obtaining an IP. If the
IP I want has not already been assigned, then my DHCP client should
insist on what I specify, giving up only after many (hopefully a
configurable number of) refusals.

A google search turns up a dhclient.conf that does this, but nothing
with respect to dhcpcd.

1) Slackware 10.0 uses dhcpcd. There must be a pretty compelling
reason to use it rather than dhclient. Why?
2) With dhcpcd, all my attempts to write a command line that
accomplishes my objective fail. What is the correct syntax?
3) Are there any "gotchas" in dhclient similar to those in dhcpcd?
dhcpcd replaces resolv.conf and ntp.conf when the IP is assigned
unless -N -R are specified.
4) Please advise me: Is it a good idea to switch from dhcpcd to
dhclient?
5) dhcpcd runs dhcpcd.exe. Does dhclient cause anything else to run?
--
buck
 
Reply With Quote
 
 
 
 
Jerry Peters
Guest
Posts: n/a

 
      06-18-2006, 07:25 PM
buck <(E-Mail Removed)> wrote:
> Cross/multi posted to alt.linux.slakware and comp.os.linux.networking.
> Not posted to alt.os.linux.slackware because there are already plenty
> of a-holes in my life.
>
> I wish to "demand" my old IP from my ISP when obtaining an IP. If the
> IP I want has not already been assigned, then my DHCP client should
> insist on what I specify, giving up only after many (hopefully a
> configurable number of) refusals.
>
> A google search turns up a dhclient.conf that does this, but nothing
> with respect to dhcpcd.
>
> 1) Slackware 10.0 uses dhcpcd. There must be a pretty compelling
> reason to use it rather than dhclient. Why?
> 2) With dhcpcd, all my attempts to write a command line that
> accomplishes my objective fail. What is the correct syntax?
> 3) Are there any "gotchas" in dhclient similar to those in dhcpcd?
> dhcpcd replaces resolv.conf and ntp.conf when the IP is assigned
> unless -N -R are specified.
> 4) Please advise me: Is it a good idea to switch from dhcpcd to
> dhclient?
> 5) dhcpcd runs dhcpcd.exe. Does dhclient cause anything else to run?
> --
> buck

I switched from dhcpcd to dhclient because it works better with my DSL
modem's implemtation of DHCP. With dhcpcd, if I didn't release the
lease, during shutdown, for example, it'd have problems re-acquiring
any addressr. Usually I'd power cycle the DSL modem. With dhclient I
have no problems, works like a charm!
dhclient's OS interface is a script /sbin/dhclient-script, you can
modify this to do just about anything you might want. Also
/etc/dhclient/dhclient-exit-hooks is called when dhclient-script is
about to return to dhclient, I use it to save various pieces of
information that dhclient has set for the connection.
The only downside of dhclient is that it's configuration is much more
complicated than dhcpcd's. Also the OMAPI/omshell feature is poorly
documented, I've never been able to get it to do anything.

Jerry
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[dhclient]force use of a well known dhcp server mbm Linux Networking 3 04-03-2008 06:52 PM
dhcp, dhclient, and roadrunner Dave Linux Networking 1 12-22-2007 11:37 AM
dhcpcd Matthew Paterson Linux Networking 5 10-29-2003 07:20 PM
dhclient doesn't respond to DHCP OFFER seandarcy Linux Networking 1 10-07-2003 09:13 AM
dns update from dhcp server ok for windows clients, not ok for linux (dhclient) clients Tom Van Overbeke Linux Networking 3 08-07-2003 03:24 PM



1 2 3 4 5 6 7 8 9 10 11