LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2006, 02:39 PM   #1
pork_salad
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
address 10.0.0.54
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.1

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, 04:05 PM   #2
pljvaldez
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, 06:46 PM   #3
pork_salad
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 10:23 AM.
 
  


Reply


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 08:49 AM
how to move from static to dhcp in debian ruwach Linux - Networking 8 12-19-2004 01:45 AM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 01:29 PM
dhcp assigned address nilbog Linux - Networking 4 04-02-2003 11:17 AM
2 static IP addresses on 2 eth cards Zingaro2002 Linux - Networking 8 01-21-2003 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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