-   Linux - Networking (
-   -   Ubuntu 12.04 box mysteriously switches from static ether config to dhcp (

kodekata 07-17-2012 09:53 AM

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 :D 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?

TobiSGD 07-18-2012 06:52 PM

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.

All times are GMT -5. The time now is 12:21 AM.