dhclient vs. dhcpcd
I was having some problems with dhcpcd, so I decided to try dhclient, which worked. A search of this forum shows mostly complaints and disrecommendations for dhclient, but I have a couple of suggestions about getting it to work:
(1) Don't trust the dhclient on your Slackware distribution. The installation on my Slackware 9 system is seriously screwed up. Get dhcp-3.0.5 from www.isc.org, and configure, make, make install. (2) Don't trust dhclient to discover your network devices on its own. Maybe it will, but I have my doubts. Tell it what you have by editing /etc/dhclient.conf. Mine contains Code:
interface "wlan0" { Now, here are the problems I was having with dhcpcd. Sometimes, under special conditions, dhcpcd could not get any response from the dhcp server in my modem/router (a Westell 327W). It happened once after I had made a mistake and locked up my Linux system so hard I had to cut the power. Ordinarily, though, dhdpcd worked for me. The other problem was that I couldn't figure out a good way to associate the ip address I got via DHCP with the name I chose for my system, using dhcpcd. dhclient seems to be well documented and has a rich set of options to deal with special circumstances. Also, I'm not sure dhcpcd is being maintained any more. |
Hey Thanks!
Quote:
thanks so much - perry |
wow, you posted that just today...
thanks again - perry |
Thank You - Thank You - Thank You!
greg,
i'm writing to you now from inside my slackware (that is, my new 10.1 install) thanks to your help: Code:
root@slackware:/home/perry/ndis/dhcp-3.0.5# ndiswrapper -l Code:
thanks for your help again! - perry |
dhclient problem #2 solved
according to what i read somewhere on this site yesterday, i would need to upgrade to 2.6.x kernel in order to get around a nasty problem when rebooting after running dhclient wlan0. the kernel would just crash (under 2.4.26) and a reboot caused major, unnecessary and nasty reiserfs problems.
so after much struggling to learn all about how to install a new kernel and then to get it working with ndiswrapper (1.45), i am now (to my "amazement") on the Internet writing to you to thank you all for your help. some of the things i had to do:
thanks again everyone - perry ps. i can't believe i am using my own compiled kernel!!!!! |
@Greg and perry i know this is an old post. but it would be grateful if u could go through my problem and suggest some pointers.
Thanks a lot for posting this.i am using dhclient. however i don't know what im facing is a problem or if i need to set some other configuration parameter. I run dhcpd and dhclient in the same subnet and dhclient.conf is as below interface "eth0" { request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope; } however i don't need so many details in the conf file but it was there by default and hence i left it as such. all i need is an ip-address for the ethernet port eth0. the setup is also simple i have a dhcp server running in a linux 2.6.38.7machine connected to a switch and another machine which runs the dhclient with the same linux version. the version of dhcpd and dhclient are isc-dhclient-4.1.1-P1 and isc-dhcpd-4.1.1-P1. after i start the dhcpd server i run the dhclient. checking the logs on both the machines it says that the ip address has been assigned,it goes through all the steps of DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPACK. also checking the lease file of both the client and server says that the client is bound a particular ip address.however ifconfig eth0 doesn't show up the ip address. why does this happen? do i need run some script to have it assigned automatically? plz help. } |
All times are GMT -5. The time now is 01:49 AM. |