Debian eth pulling DHCP even after Static is assigned
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.
Debian eth pulling DHCP even after Static is assigned
If anyone can point me to the right thread if I have missed it, please do, I have searched for days.
I have Debian sarge running on 4 different boxes, a couple behind a cisco 1370, and a couple behind a smoothwall firewall. Due to other machines needing to connect I have both the smoothwall and the cisco offering DHCP (on different networks of course! I'm just illustrating I am dumb and have the same problem on 2 different networks with multiple NICs)
I then restart networking, and the address sticks. Then after the DHCP lease is up, the interface pulls a dynamic address. This happens on every box.
I've also run etherconf, which fixes it for the life of the lease then back to DHCP. If I cat the interface I still show the static I assigned, and a quick restart resets it to static.
That's pretty weird. But I use a solution that takes care of both static address and dhcp. It's called "static dchp". My router allows me to set a specific IP address based on the MAC address of the card. So I assign each NIC on my network a particular IP that way, and all the clients can still use DHCP.
I've messed with that, assigning IPs by MAC which didn't work either. It pulled a random address anyway. I don't know what the problem is, I just recently installed these 4 machines in the last 2 weeks with sarge. 3 months ago I also installed sarge on my laptop and was able to set a static IP no problem. I wonder if the newer distro has anything to do with it???
Anyway, thanks for your reply.
Oh ya, maybe I should mention that on my smoothwall I turned off the DHCP server (leases of 1 hour) and assigned static and its been 9 hours and still running static. Hope that clarifies a bit, I still would like to understand why. If anyone knows let me know.
Last edited by pork_salad; 03-31-2006 at 10:23 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.