LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu 12.04 box mysteriously switches from static ether config to dhcp (http://www.linuxquestions.org/questions/linux-networking-3/ubuntu-12-04-box-mysteriously-switches-from-static-ether-config-to-dhcp-4175417191/)

kodekata 07-17-2012 08: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 10.1.0.11 (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 10.1.0.100-254).

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:
Code:

# 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
  address 10.1.0.11
  netmask 255.255.255.0
  network 10.1.0.0
  gateway 10.1.0.1
  broadcast 10.1.0.255

What are the likely culprits? Is it a bug?

TobiSGD 07-18-2012 05: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 07:33 PM.