? dhcpcd and dhclient give me two different IP addresses; static IP while using DHCP
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
? dhcpcd and dhclient give me two different IP addresses; static IP while using DHCP
Hi, All.
I have been wrestling with DHCP on an openSUSE 10.2 box and am puzzled about some things.
Why does dhcpcd acquire one IP address from my network and dhclient acquire a different IP address from the same network with the same MAC?
Isn't there a way to force (or at least request) that a DHCP server give me a particular IP address while still using DHCP for nameservers, etc? I tried using "fixed-address" with dhclient but ended up going with dhcpcd because that gave me the IP address I have been using for a long time and I needed to keep it.
Well as this does have a reply at all now, but each DHCP client will store it's previous address details in it's own file. so when each one is used, it will request the last address it knew about form the dhcp server. if the dhcp server has no objections it will let it have it. it's not really the place of the dhcp server to insist on a certain address outisde of a MAC being hardcoded on the server side config.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.