LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-17-2012, 08:53 AM   #1
kodekata
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 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 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?

Last edited by kodekata; 07-17-2012 at 08:55 AM. Reason: removed "dns-nameservers 10.1.0.1" from eth0 stanza to reflect file contents at last occurrence of problem
 
Old 07-18-2012, 05:52 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,354
Blog Entries: 2

Rep: Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979Reputation: 3979
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.
 
  


Reply

Tags
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. nnenna@stuydy.beds.ac.uk 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


All times are GMT -5. The time now is 12:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration