Visit Jeremy's Blog.
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 07-17-2012, 08:53 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Ubuntu 12.04 box mysteriously switches from static ether config to dhcp

Hello LQers,

I have a computer in my office running Ubuntu 12.04 server. I have configured the only network interface to use a static ip through /etc/network/interfaces.

After a reboot, or a '/etc/init.d/networking restart', all is hunky dory and my server shows up at (the address provided in interfaces). However, within 24 hours, I will find my proxy is broken (it is running squid and dnsmasq), I can't ssh to it, and the reason is because it has acquired a dhcp lease from the router and has a different address (in the range

It is an Intel D525MW board. I have installed nothing at this point except git, dnsmasq, cups, and squid. It is a fanless board, and right now its in a case with no fans However, this change has happened a few times, and I somehow doubt it is heat.

Here is my /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
What are the likely culprits? Is it a bug?

Last edited by kodekata; 07-17-2012 at 08:55 AM. Reason: removed "dns-nameservers" from eth0 stanza to reflect file contents at last occurrence of problem
Old 07-18-2012, 05:52 PM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857Reputation: 4857
When your system acquires a DHCP lease this means that there must be a DHCP client running on your system. Disable it and watch if that solves your problem.


dhcp, static

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
Another host using IP address, Linux server Static config, DHCP. Linux - Newbie 2 03-22-2012 11:31 PM
eth0 can't get IP with DHCP, static config. attempts can't ping pdt677 Linux - Networking 6 03-06-2005 09:53 PM
How to run Dyn. DNS on a static IP for a box on dhcp chuddy117 Linux - Networking 2 10-04-2004 08:10 AM
computer switches from static to dhcp address (automagically?) cyberpuerka Linux - Networking 1 09-03-2004 11:29 AM
Setting up a static IP on linux box which obtains an IP via DHCP vxc69 Linux - Networking 19 07-13-2004 05:18 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:57 PM.

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