Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-30-2006, 03:39 PM   #1
LQ Newbie
Registered: Mar 2006
Location: SLC, Utah
Distribution: Debian Sarge, Etch
Posts: 3

Rep: Reputation: 0
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 have set static IPs in /etc/network/interfaces:

auto lo eth0

iface lo inet loopback

iface eth0 inet static

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.

What have I missed?
Old 03-30-2006, 05:05 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
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.
Old 03-30-2006, 07:46 PM   #3
LQ Newbie
Registered: Mar 2006
Location: SLC, Utah
Distribution: Debian Sarge, Etch
Posts: 3

Original Poster
Rep: Reputation: 0
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 11:23 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Static IP to DHCP on Debian 3.1 sether Linux - Networking 3 08-24-2005 09:49 AM
how to move from static to dhcp in debian ruwach Linux - Networking 8 12-19-2004 02:45 AM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 02:29 PM
dhcp assigned address nilbog Linux - Networking 4 04-02-2003 12:17 PM
2 static IP addresses on 2 eth cards Zingaro2002 Linux - Networking 8 01-21-2003 01:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration